blob: ebf6019895db3f6248b1d408d4e2d6d8a85af99c [file] [log] [blame]
// This test shouldn't crash.
class A { };
class B extends A {
constructor(a, b) {
var f = () => b ? this : {};
if (a) {
var val = f() == super();
} else {
super();
var val = f();
}
}
};
for (var i=0; i < 10000; i++) {
try {
new B(true, true);
} catch (e) {
}
var a = new B(false, true);
var c = new B(true, false);
}