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