Skip to content

Commit dd0adbd

Browse files
lib: update notDeepStrictEqual to support skipPrototypeComparison option
1 parent b4d8d5e commit dd0adbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/assert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function notDeepStrictEqual(actual, expected, message) {
339339
throw new ERR_MISSING_ARGS('actual', 'expected');
340340
}
341341
if (isDeepEqual === undefined) lazyLoadComparison();
342-
if (isDeepStrictEqual(actual, expected)) {
342+
if (isDeepStrictEqual(actual, expected, { skipPrototypeComparison: this?.[kOptions]?.skipPrototypeComparison })) {
343343
innerFail({
344344
actual,
345345
expected,

0 commit comments

Comments
 (0)