PR-URL: https://github.com/nodejs/node/pull/47498 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
7 lines
174 B
Text
7 lines
174 B
Text
|
|
*throw_custom_error.js:*
|
|
throw ({ name: 'MyCustomError', message: 'This is a custom message' });
|
|
^
|
|
{ name: 'MyCustomError', message: 'This is a custom message' }
|
|
|
|
Node.js *
|