summaryrefslogtreecommitdiff
path: root/lib/internal/assert/assertion_error.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/assert/assertion_error.js')
-rw-r--r--lib/internal/assert/assertion_error.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/assert/assertion_error.js b/lib/internal/assert/assertion_error.js
index 3734796e2d..0b57bf2cb2 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;
}