mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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>
5 lines
152 B
Plaintext
5 lines
152 B
Plaintext
*test*message*throw_custom_error.js:6
|
|
throw ({ name: 'MyCustomError', message: 'This is a custom message' });
|
|
^
|
|
MyCustomError: This is a custom message
|