Index: test/mjsunit/regress/regress-crbug-401915.js |
diff --git a/test/mjsunit/regress/regress-crbug-387599.js b/test/mjsunit/regress/regress-crbug-401915.js |
similarity index 68% |
copy from test/mjsunit/regress/regress-crbug-387599.js |
copy to test/mjsunit/regress/regress-crbug-401915.js |
index 98750aa918261f707bdee8a05d230c2805aa11e9..96dce048689cb28d9a095a8a5378503ffa4ae449 100644 |
--- a/test/mjsunit/regress/regress-crbug-387599.js |
+++ b/test/mjsunit/regress/regress-crbug-401915.js |
@@ -6,14 +6,15 @@ |
Debug = debug.Debug; |
Debug.setListener(function() {}); |
+Debug.setBreakOnException(); |
-function f() { |
- for (var i = 0; i < 100; i++) { |
- %OptimizeFunctionOnNextCall(f, "osr"); |
+try { |
+ try { |
+ %DebugPushPromise(new Promise(function() {})); |
+ } catch (e) { |
} |
+ throw new Error(); |
+} catch (e) { |
} |
-Debug.setBreakPoint(f, 0, 0); |
-f(); |
-f(); |
Debug.setListener(null); |