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) {
1154
1154
return cmd ;
1155
1155
} ;
1156
1156
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 ;
1159
1161
}
1160
1162
1161
1163
// If the error is that we've unexpectedly ended the input,
@@ -1169,7 +1171,8 @@ function isRecoverableError(e, self) {
1169
1171
return true ;
1170
1172
}
1171
1173
1172
- if ( message . startsWith ( 'Unexpected end of input' ) )
1174
+ if ( message . startsWith ( 'Unexpected end of input' ) ||
1175
+ message . startsWith ( 'missing ) after argument list' ) )
1173
1176
return true ;
1174
1177
1175
1178
if ( message . startsWith ( 'Unexpected token' ) ) {
@@ -1178,9 +1181,6 @@ function isRecoverableError(e, self) {
1178
1181
else
1179
1182
return true ;
1180
1183
}
1181
-
1182
- if ( message . startsWith ( 'missing ) after argument list' ) )
1183
- return true ;
1184
1184
}
1185
1185
return false ;
1186
1186
}
You can’t perform that action at this time.
0 commit comments