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

Commit

Permalink
lib,test: fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Mar 15, 2017
1 parent f87a4eb commit 97f22aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ var isIncompleteSyntaxErrorMessage = (function() {
return true;
}
if (message === 'Invalid or unexpected token') {
return !bailOnIllegalToken(code);
return isCodeRecoverable(code);
}
return false;
};
Expand Down
3 changes: 1 addition & 2 deletions test/parallel/test-repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,13 @@ function error_test() {
client: client_unix, send: '(function() {\nif (false) {} /bar"/;\n}())',
expect: prompt_multiline + prompt_multiline + 'undefined\n' + prompt_unix
},

// Newline within template string maintains whitespace.
{ client: client_unix, send: '`foo \n`',
expect: prompt_multiline + '\'foo \\n\'\n' + prompt_unix },
// Whitespace is not evaluated.
{ client: client_unix, send: ' \t \n',
expect: prompt_unix }
].filter((v) => !common.engineSpecificMessage(v)));
].filter((v) => !common.engineSpecificMessage(v)));
}

function tcp_test() {
Expand Down

0 comments on commit 97f22aa

Please sign in to comment.