blob: 92d30db410578ce141bced2ef22ccfa8f1bf5e90 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function assert(b) {
if (!b)
throw new Error;
}
function test4() {
function get(o) {
return o.testStaticAccessor;
}
noInline(get);
const proto = $vm.createStaticCustomAccessor();
const o = {__proto__: proto};
const d = Object.getOwnPropertyDescriptor(proto, "testStaticAccessor");
assert(!!d.get);
o.testField = 1337;
for (let i = 0; i < 500000; ++i) {
assert(get(o) === 1337);
}
}
test4();