blob: 94abb3e3a28e0d9fa56ac01c70e52da17929cf72 [file] [log] [blame]
function assert(b) {
if (!b)
throw new Error;
}
let result;
Object.defineProperty(Object.prototype, '1', {
get() { return result; },
set(x) { result = x; }
});
Array.prototype.length = 0x10000000;
Array.prototype[1] = 42;
assert(result === 42);
assert(Array.prototype[1] === 42);