Index: test/mjsunit/regress/regress-crbug-501711.js |
diff --git a/test/mjsunit/compiler/regress-451012.js b/test/mjsunit/regress/regress-crbug-501711.js |
similarity index 71% |
copy from test/mjsunit/compiler/regress-451012.js |
copy to test/mjsunit/regress/regress-crbug-501711.js |
index bffc8bc5bdfac32bb561a24153d00157b26ac3a5..f8eda6e8d8e26f41b79e05af891b0f5446b5cd37 100644 |
--- a/test/mjsunit/compiler/regress-451012.js |
+++ b/test/mjsunit/regress/regress-crbug-501711.js |
@@ -2,11 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-"use strict"; |
+// Flags: --stack-size=100 |
+ |
function f() { |
- for (let v; v; ) { |
- let x; |
+ try { |
+ f(); |
+ } catch(e) { |
+ Realm.create(); |
} |
} |
- |
f(); |