Skip to content

Commit 75e4759

Browse files
committed
squash: nits
1 parent 320e3a1 commit 75e4759

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/repl.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)