mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Try embedding the ` ... ^` lines inside the `SyntaxError` (or any other native error) object before giving up and printing them to the stderr. fix #6920 fix #1310
6 lines
160 B
Plaintext
6 lines
160 B
Plaintext
before
|
|
*test*message*throw_custom_error.js:31
|
|
throw ({ name: 'MyCustomError', message: 'This is a custom message' });
|
|
^
|
|
MyCustomError: This is a custom message
|