Index: test/mjsunit/compiler/regress-446647.js |
diff --git a/test/mjsunit/regress/regress-444805.js-script b/test/mjsunit/compiler/regress-446647.js |
similarity index 50% |
copy from test/mjsunit/regress/regress-444805.js-script |
copy to test/mjsunit/compiler/regress-446647.js |
index 17b233b5613fcf1d71c8f7e77ab42d9f5a0bdcf1..77757abd662cd99fe0630be6ed8355b8bebf6eb3 100644 |
--- a/test/mjsunit/regress/regress-444805.js-script |
+++ b/test/mjsunit/compiler/regress-446647.js |
@@ -2,10 +2,10 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-Error.prepareStackTrace = function(dummyObject, v8StackTrace) |
-{ |
- throw new Error('boom'); |
-}; |
+// Flags: --always-opt --turbo-filter=* --turbo-deoptimization --allow-natives-syntax |
+function f(a,b) { |
+ a%b |
+}; |
-throw new Error('just error'); |
+f({ toString : function() { %DeoptimizeFunction(f); }}); |