blob: abe363fa840c67614ab44dfdbed193fc949d1f4a [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
var testValue = 'test-value';
class A {
constructor() {
this.value = testValue;
}
}
class B extends A {
constructor() {
super();
var arrow = () => testValue;
arrow();
}
}
noInline(B);
for (let i = 0; i < 1000000; ++i) {
let b = new B();
if (b.value != testValue)
throw "Error: bad result: " + result;
}