blob: 547f4e1382ad4f484615f74b8838224727b25859 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Don't Crash
var testStr = `
class C extends Object {
constructor() {
eval(\`a => b => {
class Q { f = 1; } // inhibits lazy parsing
super();
}\`);
}
}
new C;`
assertEq(raisesException(ReferenceError)(testStr), true);
reportCompare(true, true);
|