mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
Bug 1139696 - Test for cross-compartment Set/Map clone (r=billm)
This commit is contained in:
parent
6de8cccbb4
commit
dadd824d2c
@ -6,3 +6,6 @@
|
||||
// Don't crash
|
||||
serialize(evalcx("new Set(['x', 'y'])"));
|
||||
serialize(evalcx("new Map([['x', 1]])"));
|
||||
|
||||
assertEq(deserialize(serialize(evalcx("new Set([1, 2, 3])"))).has(1), true);
|
||||
assertEq(deserialize(serialize(evalcx("new Map([['x', 1]])"))).get('x'), 1);
|
||||
|
Loading…
Reference in New Issue
Block a user