Index: test/mjsunit/array-unshift.js |
diff --git a/test/mjsunit/array-unshift.js b/test/mjsunit/array-unshift.js |
index c4cc95cbb46f745203d62e472a07b688385b3d74..4010601aca0d5d9003ef70d5f53ce1d0e69f105e 100644 |
--- a/test/mjsunit/array-unshift.js |
+++ b/test/mjsunit/array-unshift.js |
@@ -194,7 +194,7 @@ |
(function() { |
for (var i = 0; i < 7; i++) { |
try { |
- new Array((1 << 32) - 3).unshift(1, 2, 3, 4, 5); |
+ new Array(Math.pow(2, 32) - 3).unshift(1, 2, 3, 4, 5); |
throw 'Should have thrown RangeError'; |
} catch (e) { |
assertTrue(e instanceof RangeError); |