blob: e4d0e8e77cbc6bd3ae5616cbdc16eaafd26032d0 [file] [log] [blame]
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;
}