From 2239b112cd0f2fa0fca5e900d20085ab79147e9e Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 10 Oct 2024 17:29:15 +0200 Subject: [PATCH] Check for identity of functions in deepEqual --- harness/deepEqual.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harness/deepEqual.js b/harness/deepEqual.js index 5f34a0c34a..19522e5845 100644 --- a/harness/deepEqual.js +++ b/harness/deepEqual.js @@ -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) {