mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Only throw the Error object itself or an object using the Error object as base objects for user-defined exceptions. PR-URL: https://github.com/nodejs/node/pull/11168 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
5 lines
77 B
Plaintext
5 lines
77 B
Plaintext
*test*message*throw_non_error.js:6
|
|
throw ({ foo: 'bar' });
|
|
^
|
|
[object Object]
|