mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
f1de13b8ab
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
|