summaryrefslogtreecommitdiff
path: root/test/message/throw_non_error.out
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-02-04 11:26:44 -0800
committerRich Trott <rtrott@gmail.com>2017-02-07 14:17:52 -0800
commit43346586352741bc250c50da08c4655fb01e9e1a (patch)
treed087213b070310adeda728c58e14c196e9c517be /test/message/throw_non_error.out
parent78ba4943c53d9aa21eab7cae5a3a04a791562704 (diff)
downloadandroid-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.out2
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]