mirror of https://github.com/lukechilds/node.git
Browse Source
There is no way a line can be called after throwing an exception. PR-URL: https://github.com/nodejs/node/pull/2289 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>v4.0.0-rc
Michaël Zasso
10 years ago
8 changed files with 3 additions and 16 deletions
@ -1,5 +1,4 @@ |
|||||
before |
*test*message*throw_custom_error.js:6 |
||||
*test*message*throw_custom_error.js:8 |
|
||||
throw ({ name: 'MyCustomError', message: 'This is a custom message' }); |
throw ({ name: 'MyCustomError', message: 'This is a custom message' }); |
||||
^ |
^ |
||||
MyCustomError: This is a custom message |
MyCustomError: This is a custom message |
||||
|
@ -1,5 +1,4 @@ |
|||||
before |
*test*message*throw_non_error.js:6 |
||||
*test*message*throw_non_error.js:8 |
|
||||
throw ({ foo: 'bar' }); |
throw ({ foo: 'bar' }); |
||||
^ |
^ |
||||
[object Object] |
[object Object] |
||||
|
Loading…
Reference in new issue