Skip to content

doc: mention constructor check in deepStrictEqual#62010

Open
skdas20 wants to merge 1 commit intonodejs:mainfrom
skdas20:docs/assert-deepstrict-constructor-60239
Open

doc: mention constructor check in deepStrictEqual#62010
skdas20 wants to merge 1 commit intonodejs:mainfrom
skdas20:docs/assert-deepstrict-constructor-60239

Conversation

@skdas20
Copy link

@skdas20 skdas20 commented Feb 26, 2026

Fixes #60239

Summary

Adds missing comparison detail to assert.deepStrictEqual() docs:

  • Documented that object constructors are compared as part of deep strict equality.

This aligns the assert docs with current behavior and existing util.isDeepStrictEqual() documentation.

Validation

Ran markdown lint on the changed file:

node tools/lint-md/lint-md.mjs doc/api/assert.md

Result: exit code 0.

@nodejs-github-bot nodejs-github-bot added assert Issues and PRs related to the assert subsystem. doc Issues and PRs related to the documentations. labels Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assert Issues and PRs related to the assert subsystem. doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update assert.deepStrictEqual docs to mention .constructor property

2 participants