script: Update indexeddb serialization (#38269)

- Dates are now serialized as f64s (like how firefox does it)
- Array buffers are serialized with structured cloning (this is not the
most correct/efficent way to serialize them, however it is currently
better than not supporting array buffers at all)
- Array types are still unimplemented.

Testing: WPT
Fixes: Some panicking

---------

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
Ashwin Naren 2025-07-25 16:41:22 +05:30 committed by GitHub
parent 165ede59cd
commit 3f1e170410
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 276 additions and 86 deletions

View file

@ -2,76 +2,26 @@
expected: ERROR
[idbfactory_cmp.any.html]
expected: CRASH
[IDBFactory.cmp() - compared keys return correct value]
expected: FAIL
[IDBFactory.cmp() - null]
expected: FAIL
[IDBFactory.cmp() - NaN]
expected: FAIL
[Array vs. Binary]
expected: FAIL
[Binary vs. String]
expected: FAIL
[String vs. Date]
expected: FAIL
[Date vs. Number]
expected: FAIL
[Compare in unsigned octet values (in the range [0, 255\])]
expected: FAIL
[Compare values of the same length]
expected: FAIL
[Compare values of different lengths]
expected: FAIL
[Compare when values in the range of their minimal length are the same]
expected: FAIL
[idbfactory_cmp.any.worker.html]
expected: CRASH
[IDBFactory.cmp() - compared keys return correct value]
expected: FAIL
[IDBFactory.cmp() - null]
expected: FAIL
[IDBFactory.cmp() - NaN]
expected: FAIL
[Array vs. Binary]
expected: FAIL
[Binary vs. String]
expected: FAIL
[String vs. Date]
expected: FAIL
[Date vs. Number]
expected: FAIL
[Compare in unsigned octet values (in the range [0, 255\])]
expected: FAIL
[Compare values of the same length]
expected: FAIL
[Compare values of different lengths]
expected: FAIL
[Compare when values in the range of their minimal length are the same]
expected: FAIL
[idbfactory_cmp.any.serviceworker.html]
expected: ERROR