node/test/message/throw_custom_error.out

5 lines
175 B
Plaintext

*test*message*throw_custom_error.js:*
throw ({ name: 'MyCustomError', message: 'This is a custom message' });
^
{ name: 'MyCustomError', message: 'This is a custom message' }