]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/obviously-elidable-new-object-then-exit.js
faa5449cebb3c5718f7131bd7dfb80162c17d5f7
1 function sumOfArithSeries(limit
) {
2 return limit
* (limit
+ 1) / 2;
7 var array
= [1, "hello"];
12 for (var i
= 0; i
< n
; ++i
) {
15 q
= array
[(i
>= n
- 100) | 0] + 1;
22 if (result
!= "hello" + 1 + (sumOfArithSeries(n
- 1) + sumOfArithSeries(n
)))
23 throw "Error: bad result: " + result
;