]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/runtime-array.js
1 function testArrayConcat() {
2 var array
= createRuntimeArray(1, 2, 3);
3 var result
= array
.concat();
5 if (result
.length
!= 3)
6 throw new Error("Runtime array length is incorrect");
7 for (var i
= 0; i
< result
.length
; i
++) {
8 if (result
[i
] != i
+ 1)
9 throw new Error("Runtime array concat result is incorrect");