Index: test/mjsunit/regress/regress-crbug-651403.js |
diff --git a/test/mjsunit/ignition/regress-629792-source-position-on-jump.js b/test/mjsunit/regress/regress-crbug-651403.js |
similarity index 51% |
copy from test/mjsunit/ignition/regress-629792-source-position-on-jump.js |
copy to test/mjsunit/regress/regress-crbug-651403.js |
index f87caf681a00af7d47b878013e1344f1cfd94c72..b549c56bafb4717ad164d2c23d23bd47e855e7cb 100644 |
--- a/test/mjsunit/ignition/regress-629792-source-position-on-jump.js |
+++ b/test/mjsunit/regress/regress-crbug-651403.js |
@@ -2,13 +2,18 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-function f(t) { |
- var f = t || this; |
- for (var i in t) { |
- for (var j in t) { |
- (j); |
- continue; |
+// Flags: --ignition-staging --turbo --always-opt |
+ |
+function f () { |
+ var x = ""; |
+ function g() { |
+ try { |
+ eval(''); |
+ return x; |
+ } catch(e) { |
} |
} |
+ return g(); |
} |
+ |
f(); |