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

@ -1,11 +1,5 @@
[value.any.html]
expected: TIMEOUT
[BigInts as keys in IndexedDB - primitive BigInt]
expected: FAIL
[BigInts as keys in IndexedDB - BigInt object]
expected: FAIL
[Values - Array]
expected: TIMEOUT
@ -15,12 +9,6 @@
[value.any.worker.html]
expected: TIMEOUT
[BigInts as keys in IndexedDB - primitive BigInt]
expected: FAIL
[BigInts as keys in IndexedDB - BigInt object]
expected: FAIL
[Values - Array]
expected: TIMEOUT