Index: test/mjsunit/es6/indexed-integer-exotics.js |
diff --git a/test/mjsunit/es6/indexed-integer-exotics.js b/test/mjsunit/es6/indexed-integer-exotics.js |
index ebc18ef5e27d3ef5b42e5a79bbc72bfa94d2ddf4..85ae3692d8df2c849b663d71a98ab23ba6e209b1 100644 |
--- a/test/mjsunit/es6/indexed-integer-exotics.js |
+++ b/test/mjsunit/es6/indexed-integer-exotics.js |
@@ -55,9 +55,10 @@ for (var i = 0; i < 3; i++) { |
%OptimizeFunctionOnNextCall(f); |
assertEquals(undefined, f()); |
-Object.defineProperty(new Int32Array(), "-1", {'value': 1}); |
-Object.defineProperty(new Int32Array(), "-0", {'value': 1}); |
-Object.defineProperty(new Int32Array(), "-10", {'value': 1}); |
-Object.defineProperty(new Int32Array(), "4294967295", {'value': 1}); |
+assertThrows('Object.defineProperty(new Int32Array(100), -1, {value: 1})'); |
+// -0 gets converted to the string "0", so use "-0" instead. |
+assertThrows('Object.defineProperty(new Int32Array(100), "-0", {value: 1})'); |
+assertThrows('Object.defineProperty(new Int32Array(100), -10, {value: 1})'); |
+assertThrows('Object.defineProperty(new Int32Array(), 4294967295, {value: 1})'); |
check(); |