Index: test/mjsunit/array-push.js |
diff --git a/test/mjsunit/array-push.js b/test/mjsunit/array-push.js |
index c87fd128e4bd4a19ccf07d6fd293592283726d89..ece3319bc15c57817017aae483ed4189306c12ca 100644 |
--- a/test/mjsunit/array-push.js |
+++ b/test/mjsunit/array-push.js |
@@ -146,3 +146,16 @@ |
f(a, {}); |
assertEquals(10, a.f()); |
})(); |
+ |
+ |
+(function testDoubleArrayPush() { |
+ var a = []; |
+ var max = 1000; |
+ for (var i = 0; i < max; i++) { |
+ a.push(i + 0.1); |
+ } |
+ assertEquals(max, a.length); |
+ for (var i = 0; i < max; i++) { |
+ assertEquals(i+0.1, a[i]); |
+ } |
+})(); |