blob: 4f70b03f55bfcf7f670d388edad58cc124a16282 [file] [log] [blame]
let p = Object.create({ foo: 1 });
let o = Object.create(p);
let other = { foo: 10 };
function foo() {
return o.foo
}
for (let i = 0; i < 10; i++)
foo();
p.__proto__ = null;
gc();
Object.defineProperty(other, "foo", { get() { } });
if (foo() !== undefined)
throw new Error("bad get by id access");