Skip to content

Commit

Permalink
Check for identity of functions in deepEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Oct 31, 2024
1 parent de68177 commit 2239b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harness/deepEqual.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2239b11

Please sign in to comment.