Check for identity of functions in deepEqual

This commit is contained in:
Ms2ger 2024-10-10 17:29:15 +02:00 committed by Philip Chimento
parent 71794b1388
commit 62d48cf9ed
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ assert.deepEqual._compare = (function () {
}
function isObjectEquatable(value) {
return typeof value === 'object';
return typeof value === 'object' || typeof value === 'function';
}
function compareObjectEquality(a, b, cache) {