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

Unified Diff: test/mjsunit/regress/regress-6121.js

Issue 2761703002: [turbofan] Properly handle IfException projections on JSForInNext. (Closed)
Patch Set: Created 3 years, 9 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 | « src/compiler/js-typed-lowering.cc ('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-6121.js
diff --git a/test/mjsunit/regress/regress-6121.js b/test/mjsunit/regress/regress-6121.js
new file mode 100644
index 0000000000000000000000000000000000000000..c29ba2b067e86234cf90933dd8e4b9f31a98b68f
--- /dev/null
+++ b/test/mjsunit/regress/regress-6121.js
@@ -0,0 +1,23 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --allow-natives-syntax
+
+function foo(o) {
+ try {
+ for (var x in o) {}
+ return false;
+ } catch (e) {
+ return true;
+ }
+}
+
+var o = new Proxy({a:1},{
+ getOwnPropertyDescriptor(target, property) { throw target; }
+});
+
+assertTrue(foo(o));
+assertTrue(foo(o));
+%OptimizeFunctionOnNextCall(foo);
+assertTrue(foo(o));
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698