diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-12-07 13:56:11 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-12-07 13:56:11 -0800 |
commit | c30f1137121315b0d3641af6dc61e3b047f940e1 (patch) | |
tree | f118eaf670505e6a63f28bc8df845520f67adc55 /deps/v8/test/mjsunit/array-functions-prototype.js | |
parent | 5b8c62f7d12c1c5a553e765ba05bbd8a7e17ee47 (diff) | |
download | android-node-v8-c30f1137121315b0d3641af6dc61e3b047f940e1.tar.gz android-node-v8-c30f1137121315b0d3641af6dc61e3b047f940e1.tar.bz2 android-node-v8-c30f1137121315b0d3641af6dc61e3b047f940e1.zip |
Upgrade V8 to 3.0.0
Diffstat (limited to 'deps/v8/test/mjsunit/array-functions-prototype.js')
-rw-r--r-- | deps/v8/test/mjsunit/array-functions-prototype.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/deps/v8/test/mjsunit/array-functions-prototype.js b/deps/v8/test/mjsunit/array-functions-prototype.js index ea0dc61ef7..b68ee734c5 100644 --- a/deps/v8/test/mjsunit/array-functions-prototype.js +++ b/deps/v8/test/mjsunit/array-functions-prototype.js @@ -55,7 +55,7 @@ function assertHasOwnProperties(object, limit) { // shift. // ---------------------------------------------------------------------- -function runTest() { +function runTest1() { var nonArray = new constructor(); var array = ['zero', , 'two']; // Shift away the zero. @@ -80,13 +80,13 @@ function runTest() { assertEquals('two', nonArray[2]); } -runTest(); +runTest1(); // ---------------------------------------------------------------------- // unshift. // ---------------------------------------------------------------------- -runTest = function() { +runTest2 = function() { var nonArray = new constructor(); var array = ['zero', , 'two']; // Unshift a new 'zero'. @@ -110,14 +110,14 @@ runTest = function() { assertEquals('two', nonArray[3]); } -runTest(); +runTest2(); // ---------------------------------------------------------------------- // splice // ---------------------------------------------------------------------- -runTest = function() { +runTest3 = function() { var nonArray = new constructor(); var array = ['zero', , 'two']; // Delete the first element by splicing in nothing. @@ -140,14 +140,14 @@ runTest = function() { assertEquals('two', nonArray[2]); }; -runTest(); +runTest3(); // ---------------------------------------------------------------------- // slice // ---------------------------------------------------------------------- -runTest = function() { +runTest4 = function() { var nonArray = new constructor(); var array = ['zero', , 'two']; // Again Spidermonkey is inconsistent. (array.slice(0, 3))[1] is @@ -156,4 +156,4 @@ runTest = function() { assertArrayEquals(['zero', 'one', 'two'], Array.prototype.slice.call(nonArray, 0, 3)); }; -runTest(); +runTest4(); |