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

Unified Diff: test/mjsunit/debug-stepout-scope-part2.js

Issue 220473014: Make stray 'return' an early error (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
Index: test/mjsunit/debug-stepout-scope-part2.js
diff --git a/test/mjsunit/debug-stepout-scope-part2.js b/test/mjsunit/debug-stepout-scope-part2.js
index 121c7b74df4316487be2301cc8abd5e908aac465..69cee994aa3e95eb8d3ad550a998a32395ccfc1f 100644
--- a/test/mjsunit/debug-stepout-scope-part2.js
+++ b/test/mjsunit/debug-stepout-scope-part2.js
@@ -54,7 +54,7 @@ Debug.setListener(listener);
var q = 42;
var prefixes = [ "debugger; ",
- "if (false) { try { throw 0; } catch(x) { return x; } }; debugger; " ];
+ "if (false) { try { throw 0; } catch(x) { this.x = x; } }; debugger; " ];
var bodies = [ "1",
"1 ",
"1;",

Powered by Google App Engine
This is Rietveld 408576698