Close #983 Better JSON.parse error detection
authorisaacs <i@izs.me>
Tue, 26 Apr 2011 16:48:28 +0000 (09:48 -0700)
committerisaacs <i@izs.me>
Tue, 26 Apr 2011 16:48:28 +0000 (09:48 -0700)
commitbbffd9e5025ef22156c7d21c746a51529f821664
treead99fe8ad2772f9b5e8f125eec1243dbe6f21778
parent68c8a69f4cdda9e6e1d80f1ed90efbabf410f20c
Close #983 Better JSON.parse error detection

Previous pattern would only catch ILLEGAL, not { or other
known-but-unexpected JSON tokens.
lib/repl.js