Commit 101e103e authored by Julien Gilli's avatar Julien Gilli
Browse files

repl: make 'Unexpected token' errors recoverable



Fix the regexp used to detect 'Unexpected token' errors so that they can
be considered as recoverable. This fixes the following use case:

> var foo = 'bar \
... baz';
undefined
> foo
'bar baz'
>

Fixes #8874

Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
PR-URL: https://github.com/joyent/node/pull/8875
parent 0dbaee4a
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