]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/get-my-argument-by-val-creates-arguments.js
3 for (var i
= 0; i
< args
.length
; ++i
)
9 // Force creation of arguments by doing out-of-bounds access.
10 var tmp
= arguments
[42];
12 // Use the created arguments object.
13 return blah(arguments
);
17 return foo
.apply(this, array
);
23 function checkEqual(a
, b
) {
24 if (a
.length
!= b
.length
)
25 throw "Error: length mismatch: " + a
+ " versus " + b
;
26 for (var i
= a
.length
; i
--;) {
28 throw "Error: mismatch at i = " + i
+ ": " + a
+ " versus " + b
;
32 function test(array
) {
33 var actual
= bar(array
);
34 checkEqual(actual
, array
);
37 for (var i
= 0; i
< 10000; ++i
) {
39 for (var j
= 0; j
< i
% 6; ++j
)