blob: 76c34c82fb785154737293fd652b64786f6b4af2 [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 < 500000; ++i) {
assert(get(o) === 1337);
}
}
test3();