Bug 1139696 - Test for cross-compartment Set/Map clone (r=billm)

This commit is contained in:
Tom Schuster 2015-03-06 14:25:47 -08:00 committed by Bill McCloskey
parent 6de8cccbb4
commit dadd824d2c

View File

@ -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);