node/test/message/throw_custom_error.out

5 lines
152 B
Plaintext

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