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

Unified Diff: test/mjsunit/debug-stepout-scope-part6.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-part6.js
diff --git a/test/mjsunit/debug-stepout-scope-part6.js b/test/mjsunit/debug-stepout-scope-part6.js
index f7c8df0bc84cc5282d8a66a0af4906eed4e66f46..2d8357fea49f0db2d6267bc37f09f99ea0bd542f 100644
--- a/test/mjsunit/debug-stepout-scope-part6.js
+++ b/test/mjsunit/debug-stepout-scope-part6.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