]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/runtime-array.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / runtime-array.js
CommitLineData
81345200
A
1function testArrayConcat() {
2 var array = createRuntimeArray(1, 2, 3);
3 var result = array.concat();
4
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");
10 }
11};
12
13testArrayConcat();