diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-11-18 04:19:16 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-03 12:37:34 +0100 |
commit | 2b5f2bc68b67621b42f6a698792532d1149e6196 (patch) | |
tree | 02169fc14e15f291626f9915e991ea1506018860 /.eslintrc.js | |
parent | 1fe824bcbb0267265a8ccdb7301b7b8e3e8779f3 (diff) | |
download | android-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