Index: test/mjsunit/compiler/dont-constant-fold-deopting-checks.js |
diff --git a/test/mjsunit/regress/regress-5006.js b/test/mjsunit/compiler/dont-constant-fold-deopting-checks.js |
similarity index 66% |
copy from test/mjsunit/regress/regress-5006.js |
copy to test/mjsunit/compiler/dont-constant-fold-deopting-checks.js |
index 29f145de0ac38c971c0c9174a83ea0cee285bb18..02bd8d9a257a6effbf7c736143f214077ed8ad4b 100644 |
--- a/test/mjsunit/regress/regress-5006.js |
+++ b/test/mjsunit/compiler/dont-constant-fold-deopting-checks.js |
@@ -4,8 +4,7 @@ |
// Flags: --allow-natives-syntax |
-function foo(x) { return Math.imul(x|0, 2); } |
-print(foo(1)); |
-print(foo(1)); |
+function bar(a) { a[0](true); } |
+function foo(a) { return bar(1); } |
%OptimizeFunctionOnNextCall(foo); |
-print(foo(1)); |
+assertThrows(function() {bar([foo])}, TypeError); |