Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repl: show exception for out-of-range unicode escape sequence #3971

Closed
bnoordhuis opened this issue Nov 22, 2015 · 5 comments
Closed

repl: show exception for out-of-range unicode escape sequence #3971

bnoordhuis opened this issue Nov 22, 2015 · 5 comments
Labels
repl Issues and PRs related to the REPL subsystem.

Comments

@bnoordhuis
Copy link
Member

> '\u{10fffe}'
'???'
> '\u{10ffff}`
'???'
> '\u{110000}'
... 

The REPL hangs waiting for completion because of the SyntaxError: Unexpected token ILLEGAL exception.

@bnoordhuis bnoordhuis added the repl Issues and PRs related to the REPL subsystem. label Nov 22, 2015
@targos
Copy link
Member

targos commented Nov 22, 2015

related: #3611

@thefourtheye
Copy link
Contributor

REPL treats all these errors as Recoverable errors and it doesn't fail immediately.

@princejwesley
Copy link
Contributor

@bnoordhuis see #5189

@princejwesley
Copy link
Contributor

@bnoordhuis @thefourtheye @targos Working!

~ 🙈  node
> '\u{110000}'
SyntaxError: Unexpected token ILLEGAL
    at Object.exports.createScript (vm.js:47:10)
    at REPLServer.defaultEval (repl.js:255:25)
    at bound (domain.js:280:14)
    at REPLServer.runBound [as eval] (domain.js:293:12)
    at REPLServer.<anonymous> (repl.js:489:10)
    at emitOne (events.js:101:20)
    at REPLServer.emit (events.js:188:7)
    at REPLServer.Interface._onLine (readline.js:232:10)
    at REPLServer.Interface._line (readline.js:574:8)
    at REPLServer.Interface._ttyWrite (readline.js:851:14)
> process.version
'v6.3.0'

@targos
Copy link
Member

targos commented Jul 15, 2016

Nice!

@targos targos closed this as completed Jul 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

No branches or pull requests

4 participants