blob: 0db4d25d7ea5c259151704d7ca2564ed633ba818 [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;
}
const Value = $vm.createCustomTestGetterSetter();
function test1() {
function getCustomValue2(o) {
return o.customValue2;
}
noInline(getCustomValue2);
const o = {};
o.__proto__ = Value;
Value.customValue2 = false;
for (let i = 0; i < 5000000; ++i) {
assert(getCustomValue2(o) === false);
}
}
test1();