diff options
author | ZYSzys <zyszys98@gmail.com> | 2019-10-03 19:35:41 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-05 23:59:32 +0300 |
commit | 739f113ba63367a93e1567032d85573a079b97b5 (patch) | |
tree | fcb0a5be64a307f530024d0a192ec97580971cc5 /lib/internal/assert | |
parent | f0bee9b490e55ae93da1d1f8a485a4a432e61575 (diff) |
lib: introduce no-mixed-operators eslint rule to lib
PR-URL: https://github.com/nodejs/node/pull/29834
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'lib/internal/assert')
-rw-r--r-- | lib/internal/assert/assertion_error.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/assert/assertion_error.js b/lib/internal/assert/assertion_error.js index 3734796e2d2..0b57bf2cb20 100644 --- a/lib/internal/assert/assertion_error.js +++ b/lib/internal/assert/assertion_error.js @@ -349,7 +349,7 @@ class AssertionError extends Error { // In case "actual" is an object or a function, it should not be // reference equal. if (operator === 'notStrictEqual' && - (typeof actual === 'object' && actual !== null || + ((typeof actual === 'object' && actual !== null) || typeof actual === 'function')) { base = kReadableOperator.notStrictEqualObject; } |