File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1154,8 +1154,10 @@ REPLServer.prototype.convertToContext = function(cmd) {
11541154 return cmd ;
11551155} ;
11561156
1157- function bailOnIllegalToken ( lp ) {
1158- return lp . _literal === null && ! lp . blockComment && ! lp . regExpLiteral ;
1157+ function bailOnIllegalToken ( parser ) {
1158+ return parser . _literal === null &&
1159+ ! parser . blockComment &&
1160+ ! parser . regExpLiteral ;
11591161}
11601162
11611163// If the error is that we've unexpectedly ended the input,
@@ -1169,7 +1171,8 @@ function isRecoverableError(e, self) {
11691171 return true ;
11701172 }
11711173
1172- if ( message . startsWith ( 'Unexpected end of input' ) )
1174+ if ( message . startsWith ( 'Unexpected end of input' ) ||
1175+ message . startsWith ( 'missing ) after argument list' ) )
11731176 return true ;
11741177
11751178 if ( message . startsWith ( 'Unexpected token' ) ) {
@@ -1178,9 +1181,6 @@ function isRecoverableError(e, self) {
11781181 else
11791182 return true ;
11801183 }
1181-
1182- if ( message . startsWith ( 'missing ) after argument list' ) )
1183- return true ;
11841184 }
11851185 return false ;
11861186}
You can’t perform that action at this time.
0 commit comments