Index: test/mjsunit/array-unshift.js |
diff --git a/test/mjsunit/array-unshift.js b/test/mjsunit/array-unshift.js |
index 06a78a7d9ee8902910a5d7118d045629716b0c1c..dbe245b8b4fea0753ed73bdf35de3d8d06d15d8f 100644 |
--- a/test/mjsunit/array-unshift.js |
+++ b/test/mjsunit/array-unshift.js |
@@ -130,3 +130,11 @@ |
assertEquals(bigNum + 7, new Array(bigNum).unshift(1, 2, 3, 4, 5, 6, 7)); |
} |
})(); |
+ |
+(function() { |
+ for (var i = 0; i < 7; i++) { |
+ var a = [6, 7, 8, 9]; |
+ a.unshift(1, 2, 3, 4, 5); |
+ assertEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], a); |
+ } |
+})(); |