node: do not print SyntaxError hints to stderr
authorFedor Indutny <fedor.indutny@gmail.com>
Wed, 5 Feb 2014 16:38:33 +0000 (20:38 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Thu, 6 Feb 2014 09:26:57 +0000 (13:26 +0400)
commitf1de13b8ab77f1bcab0d7cffee140a264cae4cce
tree03205bb58ad3d5e1d19ac576197d02ac2a5b4c01
parent6cbfcdad46d733bb04332063727e304e449dc86b
node: do not print SyntaxError hints to stderr

Try embedding the ` ... ^` lines inside the `SyntaxError` (or any other
native error) object before giving up and printing them to the stderr.

fix #6920
fix #1310
src/env-inl.h
src/env.h
src/node.cc
src/node.h
src/node_contextify.cc
src/node_internals.h
test/message/eval_messages.out
test/message/throw_custom_error.out
test/message/throw_in_line_with_tabs.out
test/message/throw_non_error.out
test/simple/test-vm-syntax-error-stderr.js [new file with mode: 0644]