]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/construct-varargs-inline-smaller-Foo.js
3 for (var i
= 0; i
< arguments
.length
; ++i
)
4 array
.push(arguments
[i
]);
9 return new Foo(...array
);
14 function checkEqual(a
, b
) {
15 if (a
.length
!= b
.length
)
16 throw "Error: bad value of c, length mismatch: " + a
+ " versus " + b
;
17 for (var i
= a
.length
; i
--;) {
19 throw "Error: bad value of c, mismatch at i = " + i
+ ": " + a
+ " versus " + b
;
23 function test(array
) {
25 var actual
= bar(array
).f
;
26 checkEqual(actual
, expected
);
29 for (var i
= 0; i
< 10000; ++i
) {
31 for (var j
= 0; j
< i
% 6; ++j
)