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

Unified Diff: test/mjsunit/debug-stepout-scope-part5.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-part5.js
diff --git a/test/mjsunit/debug-stepout-scope-part5.js b/test/mjsunit/debug-stepout-scope-part5.js
index f060ec38892de4b850ad349cd1f703b2c356853b..250bee4d815fbb9bd7ba0bf5c80dc7ac66f44b5d 100644
--- a/test/mjsunit/debug-stepout-scope-part5.js
+++ b/test/mjsunit/debug-stepout-scope-part5.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 with_bodies = [ "with ({}) {}",
"with ({x:1}) x",
"with ({x:1}) x = 1",

Powered by Google App Engine
This is Rietveld 408576698