This repository has been archived by the owner. It is now read-only.

JSON.parse(bad_json_string) stalls in node REPL #983

Closed
chbrown opened this Issue Apr 26, 2011 · 1 comment

Comments

Projects
None yet
2 participants

chbrown commented Apr 26, 2011

$ node
> JSON.parse('{{: xjnk123, null};;-=+')
...

It stalls, when it should throw an error right then and there. It breaks as expected when run as a script ($ node sandbox_json.js).

Thanks!

-Chris

isaacs commented Apr 26, 2011

Ah, there's a trap for this, but only for "unexpected token ILLEGAL", not for "unexpected token {".

@isaacs isaacs closed this in bbffd9e Apr 26, 2011

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.