mirror of https://github.com/lukechilds/node.git
Browse Source
So instead of: node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ You will now see: path/to/foo.js:1 throw new Error('bar'); ^ This is a sub-set of isaacs patch here: https://github.com/joyent/node/issues/3235 The difference is that this patch purely adresses the exception output, but does not try to make any behavior changes / improvements.v0.8.7-release
Felix Geisendörfer
13 years ago
committed by
isaacs
5 changed files with 20 additions and 15 deletions
@ -1,6 +1,6 @@ |
|||
before |
|||
|
|||
module.js:311 |
|||
throw err; |
|||
^ |
|||
*test*message*stack_overflow.js:31 |
|||
function stackOverflow() { |
|||
^ |
|||
RangeError: Maximum call stack size exceeded |
|||
|
@ -1,6 +1,6 @@ |
|||
before |
|||
|
|||
module.js:311 |
|||
throw err; |
|||
^ |
|||
*test*message*throw_custom_error.js:31 |
|||
throw { name: 'MyCustomError', message: 'This is a custom message' }; |
|||
^ |
|||
MyCustomError: This is a custom message |
|||
|
@ -1,6 +1,6 @@ |
|||
before |
|||
|
|||
module.js:311 |
|||
throw err; |
|||
^ |
|||
*/test/message/throw_non_error.js:31 |
|||
throw { foo: 'bar' }; |
|||
^ |
|||
[object Object] |
|||
|
Loading…
Reference in new issue