]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/class-syntax-no-tdz-in-eval.js
93bcd31b4c2696001a850903d74c8a33095cbeca
[apple/javascriptcore.git] / tests / stress / class-syntax-no-tdz-in-eval.js
1
2 class A {
3 constructor() { }
4 }
5
6 class B extends A {
7 constructor(shouldAccessThis) {
8 var evalFunction = eval;
9 evalFunction("this");
10 eval("shouldAccessThis ? this : null");
11 super();
12 }
13 }
14
15 noInline(B);
16
17 for (var i = 0; i < 1e4; ++i)
18 new B(false);