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

Unified Diff: test/cctest/test-parsing.cc

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/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index ccb5e8c992850635b3d404bd22898d7cb20451cb..e9429bf3858bffced84e5e6f73d2f194617efd6e 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -1480,9 +1480,10 @@ TEST(ParserSync) {
"break",
"break label",
"break\nlabel",
- "return",
- "return 12",
- "return\n12",
+ // TODO(marja): activate once parsing 'return' is merged into ParserBase.
+ // "return",
+ // "return 12",
+ // "return\n12",
"with ({}) ;",
"with ({}) {}",
"with ({}) 12",
« src/runtime.cc ('K') | « src/runtime.cc ('k') | test/mjsunit/debug-stepout-scope-part2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698