blob: 08539149a9bd2dc66f73378379191c1c26b55b33 [file] [log] [blame]
function assert(b) {
if (!b)
throw new Error;
}
function test3() {
function get(o) {
return o.testStaticAccessor;
}
noInline(get);
const proto = $vm.createStaticCustomAccessor();
const o = {__proto__: proto};
o.testField = 1337;
for (let i = 0; i < 500; ++i) {
assert(get(o) === 1337);
}
proto.xyz = 42;
assert(delete proto.testStaticAccessor);
assert(get(o) === undefined);
}
test3();