Files
node/test/fixtures/errors/throw_custom_error.snapshot
T
2023-04-27 06:41:58 +00:00

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 *