Index: test/mjsunit/regress/regress-crbug-491062.js |
diff --git a/test/mjsunit/harmony/regress/regress-crbug-465671.js b/test/mjsunit/regress/regress-crbug-491062.js |
similarity index 56% |
copy from test/mjsunit/harmony/regress/regress-crbug-465671.js |
copy to test/mjsunit/regress/regress-crbug-491062.js |
index 24f4d054755bc241d87ad774787d595aad6c0657..e16f85b1eb87ac991fdcb65c7cc7527de807608a 100644 |
--- a/test/mjsunit/harmony/regress/regress-crbug-465671.js |
+++ b/test/mjsunit/regress/regress-crbug-491062.js |
@@ -2,15 +2,21 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --harmony-arrow-functions |
+// Flags: --allow-natives-syntax --stack-limit=32 |
-// This used to trigger crash because of an unhandled stack overflow. |
+function g() {} |
+ |
+var count = 0; |
function f() { |
- var a = [10]; |
try { |
f(); |
} catch(e) { |
- a.map(v => v + 1); |
+ print(e.stack); |
+ } |
+ if (count < 50) { |
+ count++; |
+ %DebugGetLoadedScripts(); |
} |
} |
f(); |
+g(); |