blob: e06c7546926400ee3f630f6d40ebb6b268f59001 [file] [log] [blame]
//@ requireOptions("--forceEagerCompilation=true")
// This test should not crash.
let a;
function foo(s) {
try {
eval(s);
} catch (e) {
gc();
a / 1;
a = null;
}
}
foo('zz');
foo('class A { y() {} }; a=new A; zz');
foo('class C { y() {} }; gc();');
class A {
y() {}
}
A.prototype.z = 0