diff options
author | Rich Trott <rtrott@gmail.com> | 2017-02-04 11:26:44 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-02-07 14:17:52 -0800 |
commit | 43346586352741bc250c50da08c4655fb01e9e1a (patch) | |
tree | d087213b070310adeda728c58e14c196e9c517be /test/message/throw_non_error.out | |
parent | 78ba4943c53d9aa21eab7cae5a3a04a791562704 (diff) | |
download | android-node-v8-43346586352741bc250c50da08c4655fb01e9e1a.tar.gz android-node-v8-43346586352741bc250c50da08c4655fb01e9e1a.tar.bz2 android-node-v8-43346586352741bc250c50da08c4655fb01e9e1a.zip |
tools: enable no-throw-literal ESLint rule
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>
Diffstat (limited to 'test/message/throw_non_error.out')
-rw-r--r-- | test/message/throw_non_error.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/message/throw_non_error.out b/test/message/throw_non_error.out index b98edc46ae..15f95fcc11 100644 --- a/test/message/throw_non_error.out +++ b/test/message/throw_non_error.out @@ -1,4 +1,4 @@ -*test*message*throw_non_error.js:5 +*test*message*throw_non_error.js:6 throw ({ foo: 'bar' }); ^ [object Object] |