summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-11-18 04:19:16 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-12-03 12:37:34 +0100
commit2b5f2bc68b67621b42f6a698792532d1149e6196 (patch)
tree02169fc14e15f291626f9915e991ea1506018860 /.eslintrc.js
parent1fe824bcbb0267265a8ccdb7301b7b8e3e8779f3 (diff)
downloadandroid-node-v8-2b5f2bc68b67621b42f6a698792532d1149e6196.tar.gz
android-node-v8-2b5f2bc68b67621b42f6a698792532d1149e6196.tar.bz2
android-node-v8-2b5f2bc68b67621b42f6a698792532d1149e6196.zip
util: improve internal `isError()` validation
The current internal isError function checked the toString value instead of using the more precise `util.types.isNativeError()` check. The `instanceof` check is not removed due to possible errors that are not native but still an instance of Error. PR-URL: https://github.com/nodejs/node/pull/24746 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to '.eslintrc.js')
0 files changed, 0 insertions, 0 deletions