blob: 327d889b393027fe8b4a518113ec7ad87d708d68 [file] [log] [blame]
function assert(condition) {
if (!condition)
throw new Error("assertion failed");
}
function test(i) {
let foo = {};
foo["bar" + i] = 1;
assert(foo["bar" + i] === 1)
assert(delete foo["bar" + i]);
assert(!("bar" + i in foo));
}
for (let i = 0; i < 100000; ++i)
test(i);