Index: test/mjsunit/regress/regress-crbug-630951.js |
diff --git a/test/mjsunit/regress/regress-crbug-614292.js b/test/mjsunit/regress/regress-crbug-630951.js |
similarity index 67% |
copy from test/mjsunit/regress/regress-crbug-614292.js |
copy to test/mjsunit/regress/regress-crbug-630951.js |
index 3a67c17f6010b3bf60a8b7c9aa019ff369ddfadf..58af024d3ac2b5fe8cbe320d27e341055c8c9e0a 100644 |
--- a/test/mjsunit/regress/regress-crbug-614292.js |
+++ b/test/mjsunit/regress/regress-crbug-630951.js |
@@ -5,10 +5,8 @@ |
// Flags: --allow-natives-syntax |
function foo() { |
- return [] | 0 && values[0] || false; |
+ "use asm"; |
+ var o = new Int32Array(64 * 1024); |
+ return () => { o[i1 >> 2] | 0; } |
} |
- |
-%OptimizeFunctionOnNextCall(foo); |
-try { |
- foo(); |
-} catch (e) {} |
+assertThrows(foo()); |