blob: 3a68a02e692c22a4524b2a0d794dd2b18dd31567 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
function f(o) {
for (var i = 0; i < 100; i++) {
o["a" + i] = i;
}
for (var i = 0; i < 100; i++) {
delete o["a" + i];
}
o.x = 123;
assertEq(Object.keys(o).length, 1);
}
f({});
f([]);
let obj = newObjectWithManyReservedSlots();
f(obj);
checkObjectWithManyReservedSlots(obj);
|