bug1841082-2.js (278B)
1 class C { 2 constructor(n) { 3 b(C,n); 4 super[1]; 5 } 6 } 7 8 function b(target, n) { 9 if (n > 0) { 10 new target(n-1); 11 } 12 } 13 14 // Make sure there are two ICs in the chain. 15 class C2 {} 16 for (var i = 0; i < 50; i++) { 17 b(C2, 1) 18 } 19 20 for (var i = 0; i < 2000; i++) { 21 b(C, 10); 22 }