mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
98e54b0bd4
A prior io.js era commit inappropriately removed the original copyright statements from the source. This restores those in any files still remaining from that edit. Ref: https://github.com/nodejs/TSC/issues/174 Ref: https://github.com/nodejs/node/pull/10599 PR-URL: https://github.com/nodejs/node/pull/10155 Note: This PR was required, reviewed-by and approved by the Node.js Foundation Legal Committee and the TSC. There is no `Approved-By:` meta data.
5 lines
152 B
Plaintext
5 lines
152 B
Plaintext
*test*message*throw_custom_error.js:*
|
|
throw ({ name: 'MyCustomError', message: 'This is a custom message' });
|
|
^
|
|
MyCustomError: This is a custom message
|