mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
PR-URL: https://github.com/nodejs/node/pull/47498 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
8 lines
174 B
Plaintext
8 lines
174 B
Plaintext
|
|
*throw_custom_error.js:*
|
|
throw ({ name: 'MyCustomError', message: 'This is a custom message' });
|
|
^
|
|
{ name: 'MyCustomError', message: 'This is a custom message' }
|
|
|
|
Node.js *
|