Implement indexeddb array conversion (#38288)

Implement conversion from js arrays into rust.

Testing: WPT
Fixes: None

---------

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Ashwin Naren 2025-09-19 23:33:16 -07:00 committed by GitHub
parent 8590c4edcf
commit 8a59c2cf56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 98 additions and 203 deletions

View file

@ -5,149 +5,77 @@
[Database readback sort - String < Array]
expected: FAIL
[IDBKey.cmp sort - String < Array]
expected: FAIL
[Database readback sort - float < String]
expected: FAIL
[IDBKey.cmp sort - float < String]
expected: FAIL
[Database readback sort - float < Date]
expected: FAIL
[IDBKey.cmp sort - float < Date]
expected: FAIL
[Database readback sort - float < Date < String < Array]
expected: FAIL
[IDBKey.cmp sort - float < Date < String < Array]
expected: FAIL
[Database readback sort - Date(1 sec ago) < Date(now) < Date(1 minute in future)]
expected: FAIL
[IDBKey.cmp sort - Date(1 sec ago) < Date(now) < Date(1 minute in future)]
expected: FAIL
[Database readback sort - -1.1 < 1 < 1.01337 < 1.013373 < 2]
expected: FAIL
[IDBKey.cmp sort - -1.1 < 1 < 1.01337 < 1.013373 < 2]
expected: FAIL
[Database readback sort - -Infinity < -0.01 < 0 < Infinity]
expected: FAIL
[IDBKey.cmp sort - -Infinity < -0.01 < 0 < Infinity]
expected: FAIL
[Database readback sort - "" < "a" < "ab" < "b" < "ba"]
expected: FAIL
[IDBKey.cmp sort - "" < "a" < "ab" < "b" < "ba"]
expected: FAIL
[Database readback sort - Arrays]
expected: FAIL
[IDBKey.cmp sort - Arrays]
expected: FAIL
[Database readback sort - Array.length: 10,000 < Array.length: 10,001]
expected: FAIL
[IDBKey.cmp sort - Array.length: 10,000 < Array.length: 10,001]
expected: FAIL
[Database readback sort - Infinity inside arrays]
expected: FAIL
[IDBKey.cmp sort - Infinity inside arrays]
expected: FAIL
[Database readback sort - Test different stuff at once]
expected: FAIL
[IDBKey.cmp sort - Test different stuff at once]
expected: FAIL
[keyorder.any.html]
[Database readback sort - String < Array]
expected: FAIL
[IDBKey.cmp sort - String < Array]
expected: FAIL
[Database readback sort - float < String]
expected: FAIL
[IDBKey.cmp sort - float < String]
expected: FAIL
[Database readback sort - float < Date]
expected: FAIL
[IDBKey.cmp sort - float < Date]
expected: FAIL
[Database readback sort - float < Date < String < Array]
expected: FAIL
[IDBKey.cmp sort - float < Date < String < Array]
expected: FAIL
[Database readback sort - Date(1 sec ago) < Date(now) < Date(1 minute in future)]
expected: FAIL
[IDBKey.cmp sort - Date(1 sec ago) < Date(now) < Date(1 minute in future)]
expected: FAIL
[Database readback sort - -1.1 < 1 < 1.01337 < 1.013373 < 2]
expected: FAIL
[IDBKey.cmp sort - -1.1 < 1 < 1.01337 < 1.013373 < 2]
expected: FAIL
[Database readback sort - -Infinity < -0.01 < 0 < Infinity]
expected: FAIL
[IDBKey.cmp sort - -Infinity < -0.01 < 0 < Infinity]
expected: FAIL
[Database readback sort - "" < "a" < "ab" < "b" < "ba"]
expected: FAIL
[IDBKey.cmp sort - "" < "a" < "ab" < "b" < "ba"]
expected: FAIL
[Database readback sort - Arrays]
expected: FAIL
[IDBKey.cmp sort - Arrays]
expected: FAIL
[Database readback sort - Array.length: 10,000 < Array.length: 10,001]
expected: FAIL
[IDBKey.cmp sort - Array.length: 10,000 < Array.length: 10,001]
expected: FAIL
[Database readback sort - Infinity inside arrays]
expected: FAIL
[IDBKey.cmp sort - Infinity inside arrays]
expected: FAIL
[Database readback sort - Test different stuff at once]
expected: FAIL
[IDBKey.cmp sort - Test different stuff at once]
expected: FAIL
[keyorder.any.serviceworker.html]
expected: ERROR