]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/class-syntax-derived-default-constructor.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / class-syntax-derived-default-constructor.js
1
2 var A = class A { };
3 var B = class B extends A { };
4 var C = class C extends B { constructor() { super(); } };
5
6 noInline(C);
7
8 (function() {
9 var x;
10 for (var i = 0; i < 1e5; ++i)
11 x = new C(false);
12 })();
13
14 var D = class D extends A { constructor() {
15 super(...arguments);
16 return function () { return arguments; }
17 } };
18 var E = class E extends D { constructor() { super(); } };
19
20 noInline(E);
21
22 (function() {
23 var x;
24 for (var i = 0; i < 1e5; ++i)
25 x = new C(false);
26 })();