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