]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/class-syntax-no-tdz-in-loop.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / class-syntax-no-tdz-in-loop.js
CommitLineData
ed1e77d3
A
1
2class A {
3 constructor() { }
4}
5
6class B extends A {
7 constructor() {
8 var values = [];
9 for (var j = 0; j < 100; j++) {
10 if (j == 1)
11 super();
12 else if (j > 2)
13 this;
14 else
15 values.push(i);
16 }
17 }
18}
19
20noInline(B);
21
22for (var i = 0; i < 10000; ++i)
23 new B();