This website works better with JavaScript.
Home
Explore
Help
Sign In
lukechilds
/
node
mirror of
https://github.com/lukechilds/node.git
Watch
1
Star
0
Fork
0
Code
Issues
Projects
Releases
Wiki
Activity
15270
Commits
131
Branches
446
Tags
325 MiB
Tree:
8895c314ac
node
/
test
/
fixtures
/
throws_error7.js
6 lines
56 B
Raw
Normal View
History
src: don't print garbage errors If JS throws an object whose toString() method throws, then Node attempts to print an empty message, but actually prints garbage. This commit checks for this case, and prints a message instead. Fixes: https://github.com/nodejs/node/issues/4079 PR-URL: https://github.com/nodejs/node/pull/4112 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
9 years ago
throw
{
toString
:
function
(
)
{
throw
this
;
}
}
;