Index: test/mjsunit/array-store-and-grow.js |
diff --git a/test/mjsunit/array-store-and-grow.js b/test/mjsunit/array-store-and-grow.js |
index 131d4ebc512d9f022238e5ff258447f7b05928de..88f3db8f646ca93f12676ccd601d0a1372246bc5 100644 |
--- a/test/mjsunit/array-store-and-grow.js |
+++ b/test/mjsunit/array-store-and-grow.js |
@@ -99,7 +99,10 @@ array_store_5(a, 1, 0.5); |
a = makeCOW(); |
array_store_5(a, 1, 0.5); |
assertEquals(0.5, a[1]); |
-assertEquals(0.5, array_store_5([], 1, 0.5)); |
+a = []; |
+assertEquals(0.5, array_store_5(a, 1, 0.5)); |
+assertEquals(undefined, a[0]); |
+assertEquals(0.5, a[1]); |
function array_store_6(a,b,c) { |
return (a[b] = c); |