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:Ben Noordhuis <info@bnoordhuis.nl>
parent
ac0665c9
Please register or sign in to comment