Commit de0aa23a authored by Rich Trott's avatar Rich Trott
Browse files

repl: refine handling of illegal tokens

Illegal tokens are only recoverable in string literals, RegExp literals,
and block comments. If not in one of these constructs, immediately
return an error rather than giving the user false hope by giving them a
chance to try to recover.

PR-URL: https://github.com/nodejs/node/pull/7104
Fixes: https://github.com/nodejs/node/issues/3611


Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent ac0665c9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment