From 4a88ed09e82ad10f0f79ce83ccb7a09adcd021a2 Mon Sep 17 00:00:00 2001 From: Hamza Kargin Date: Sat, 24 Jan 2026 22:16:49 +0400 Subject: [PATCH] doc: mention constructor comparison in assert.deepStrictEqual PR-URL: https://github.com/nodejs/node/pull/60253 Reviewed-By: Ruben Bridgewater Reviewed-By: Rafael Gonzaga Reviewed-By: Aviv Keller --- doc/api/assert.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/assert.md b/doc/api/assert.md index 02dc0753041..463cd1ef8a7 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -715,6 +715,7 @@ are also recursively evaluated by the following rules. both sides are {NaN}. * [Type tags][Object.prototype.toString()] of objects should be the same. * Only [enumerable "own" properties][] are considered. +* Object constructors are compared when available. * {Error} names, messages, causes, and errors are always compared, even if these are not enumerable properties. * [Object wrappers][] are compared both as objects and unwrapped values.