repl: fix JSON.parse error check
authorBrian White <mscdex@mscdex.net>
Sun, 26 May 2013 16:26:39 +0000 (12:26 -0400)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 30 May 2013 12:41:00 +0000 (14:41 +0200)
commit774b28fde7035b076f5d80ade2ea293b18f2084b
tree7b79b7ccbcc1668a17d4b8dad7737905fc5b694d
parent9ee86b718c8079474b2647385404042fd94fd116
repl: fix JSON.parse error check

Before this, entering something like:

> JSON.parse('066');

resulted in the "..." prompt instead of displaying the expected
"SyntaxError: Unexpected number"
lib/repl.js
test/simple/test-repl.js