blob: 27d0bcba8426153338ba2126a5d9e17f49e47f23 [file] [log] [blame]
class A {
constructor() { }
}
class B extends A {
constructor(accessThisBeforeSuper) {
if (accessThisBeforeSuper)
this;
else {
this;
super();
}
}
}
noInline(B);
for (var i = 0; i < 10000; ++i) {
var exception = null;
try {
new B(false);
} catch (e) {
exception = e;
}
if (!exception)
throw "Exception not thrown for an unitialized this at iteration " + i;
}