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

Unified Diff: test/mjsunit/regress/regress-crbug-505354.js

Issue 1213183003: [turbofan] Fix exit control flow in TryCatchBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/control-builders.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-crbug-505354.js
diff --git a/test/mjsunit/regress/regress-crbug-489293.js b/test/mjsunit/regress/regress-crbug-505354.js
similarity index 62%
copy from test/mjsunit/regress/regress-crbug-489293.js
copy to test/mjsunit/regress/regress-crbug-505354.js
index bcfc702df3242265e21f78df62d212814a06c83d..61c40c44dacb4091b482547cffbe6d4b3eeccb32 100644
--- a/test/mjsunit/regress/regress-crbug-489293.js
+++ b/test/mjsunit/regress/regress-crbug-505354.js
@@ -3,14 +3,12 @@
// found in the LICENSE file.
// Flags: --allow-natives-syntax --turbo-filter=f
-// Flags: --noanalyze-environment-liveness
function f() {
- var x = 0;
- for (var y = 0; y < 0; ++y) {
- x = (x + y) | 0;
- }
- return unbound;
+ "use strict";
+ try {
+ for (let i = 0; i < 10; i++) {}
+ } catch(e) {}
}
%OptimizeFunctionOnNextCall(f);
-assertThrows(f, ReferenceError);
+f();
« no previous file with comments | « src/compiler/control-builders.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698