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

Unified Diff: test/mjsunit/es8/syntactic-tail-call-parsing-sloppy.js

Issue 2279363002: Remove duplicated code from comma-separated Expression parsing (Closed)
Patch Set: Remove unused message Created 4 years, 4 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/es8/syntactic-tail-call-parsing-sloppy.js
diff --git a/test/mjsunit/es8/syntactic-tail-call-parsing-sloppy.js b/test/mjsunit/es8/syntactic-tail-call-parsing-sloppy.js
index d02608606d0267df52ce860388b7c5b7420863ee..100171d17bb728745ad4555b575670e2b13c1220 100644
--- a/test/mjsunit/es8/syntactic-tail-call-parsing-sloppy.js
+++ b/test/mjsunit/es8/syntactic-tail-call-parsing-sloppy.js
@@ -142,12 +142,6 @@ var SyntaxErrorTests = [
{ src: `()=>{ (1, 2, 3, continue f() ) => {} }`,
err: ` ^^^^^^^^^^^^`,
},
- { src: `()=>{ (... continue f()) => {} }`,
- err: ` ^^^^^^^^^^^^`,
- },
- { src: `()=>{ (a, b, c, ... continue f() ) => {} }`,
- err: ` ^^^^^^^^^^^^`,
- },
{ src: `()=>{ return a <= continue f(); }`,
err: ` ^^^^^^^^^^^^`,
},
@@ -333,6 +327,16 @@ var SyntaxErrorTests = [
},
],
},
+ { msg: "Unexpected token continue",
+ tests: [
+ { src: `()=>{ (... continue f()) => {} }`,
+ err: ` ^^^^^^^^`,
+ },
+ { src: `()=>{ (a, b, c, ... continue f() ) => {} }`,
+ err: ` ^^^^^^^^`,
+ },
+ ],
+ },
{ msg: "Undefined label 'foo'",
tests: [
{ src: `()=>{ continue foo () ; }`,

Powered by Google App Engine
This is Rietveld 408576698