Index: test/mjsunit/harmony/array-length.js |
diff --git a/test/mjsunit/harmony/array-length.js b/test/mjsunit/harmony/array-length.js |
index cc3b88105c840ffe2411013f9228b63aa33bd734..df488196ff61a055ccbc615baa5589fe3f0f03e7 100644 |
--- a/test/mjsunit/harmony/array-length.js |
+++ b/test/mjsunit/harmony/array-length.js |
@@ -33,7 +33,13 @@ |
assertEquals(1, o[0]); |
var o = { length: Number.MAX_VALUE }; |
-assertThrows(() => Array.prototype.push.call(o, 1), TypeError); |
+Array.prototype.push.call(o, 1); |
+assertEquals(o.length, Number.MAX_SAFE_INTEGER + 1); |
+assertEquals(1, o[Number.MAX_SAFE_INTEGER]); |
+ |
+Array.prototype.push.call(o, 2); |
+assertEquals(o.length, Number.MAX_SAFE_INTEGER + 1); |
+assertEquals(2, o[Number.MAX_SAFE_INTEGER]); |
// ArrayPop |