Skip to content

Commit

Permalink
Bug 1598170 [wpt PR 20352] - Indexed DB: Verify array proxies are not…
Browse files Browse the repository at this point in the history
… valid keys, a=testonly

Automatic update from web-platform-tests
Indexed DB: Verify array proxies are not valid keys (#20352)

Arrays of keys are valid keys, but implementations don't allow proxies of arrays to be keys. Add a test, corresponding to pending spec PR:

Bug: w3c/IndexedDB#309
PR: w3c/IndexedDB#311

--

wpt-commits: c65519066cf95e902607cce03a9057b859a50242
wpt-pr: 20352
  • Loading branch information
inexorabletash authored and moz-wptsync-bot committed Nov 29, 2019
1 parent 2f19b3d commit 832e08b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testing/web-platform/tests/IndexedDB/key_invalid.htm
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
var recursive3 = [recursive];
invalid_key('array member contains self', recursive3);

invalid_key('proxy of an array', new Proxy([1,2,3], {}));

</script>

<div id=log></div>

0 comments on commit 832e08b

Please sign in to comment.