Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 97f22aa

Browse files
committed
lib,test: fixed lint errors
1 parent f87a4eb commit 97f22aa

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ var isIncompleteSyntaxErrorMessage = (function() {
12771277
return true;
12781278
}
12791279
if (message === 'Invalid or unexpected token') {
1280-
return !bailOnIllegalToken(code);
1280+
return isCodeRecoverable(code);
12811281
}
12821282
return false;
12831283
};

test/parallel/test-repl.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,13 @@ function error_test() {
457457
client: client_unix, send: '(function() {\nif (false) {} /bar"/;\n}())',
458458
expect: prompt_multiline + prompt_multiline + 'undefined\n' + prompt_unix
459459
},
460-
461460
// Newline within template string maintains whitespace.
462461
{ client: client_unix, send: '`foo \n`',
463462
expect: prompt_multiline + '\'foo \\n\'\n' + prompt_unix },
464463
// Whitespace is not evaluated.
465464
{ client: client_unix, send: ' \t \n',
466465
expect: prompt_unix }
467-
].filter((v) => !common.engineSpecificMessage(v)));
466+
].filter((v) => !common.engineSpecificMessage(v)));
468467
}
469468

470469
function tcp_test() {

0 commit comments

Comments
 (0)