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 () ; }`, |