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