Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: test/mjsunit/regress/regress-crbug-651403-global.js

Issue 2379043002: [ignition] BytecodeGraphBuilder: Merge correct environment in try block (Closed)
Patch Set: Add a global lookup test too Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/regress/regress-crbug-651403.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-651403-global.js
diff --git a/test/mjsunit/ignition/regress-629792-source-position-on-jump.js b/test/mjsunit/regress/regress-crbug-651403-global.js
similarity index 52%
copy from test/mjsunit/ignition/regress-629792-source-position-on-jump.js
copy to test/mjsunit/regress/regress-crbug-651403-global.js
index f87caf681a00af7d47b878013e1344f1cfd94c72..776bdcfc873d19ce6e92645564288da9c9dccf87 100644
--- a/test/mjsunit/ignition/regress-629792-source-position-on-jump.js
+++ b/test/mjsunit/regress/regress-crbug-651403-global.js
@@ -2,13 +2,19 @@
// 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
+
+x = "";
+
+function f () {
+ function g() {
+ try {
+ eval('');
+ return x;
+ } catch(e) {
}
}
+ return g();
}
+
f();
« no previous file with comments | « test/mjsunit/regress/regress-crbug-651403.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698