blob: 3db376fa66bca2e40b0ad550b7a84e99388410b7 [file] [log] [blame]
function assert(b) {
if (!b)
throw new Error;
}
function makeDictionary() {
let o = {};
for (let i = 0; i < 1000; ++i)
o["f" + i] = 42;
return o;
}
function foo(o) {
delete o.x;
}
let d = makeDictionary();
for (let i = 0; i < 150; ++i) {
foo(d);
}
d.x = 42;
foo(d);
assert(!d.x);