Skip to content

doc: mention constructors in deepStrictEqual#63337

Open
MukundaKatta wants to merge 1 commit into
nodejs:mainfrom
MukundaKatta:codex/doc-assert-constructor-comparison
Open

doc: mention constructors in deepStrictEqual#63337
MukundaKatta wants to merge 1 commit into
nodejs:mainfrom
MukundaKatta:codex/doc-assert-constructor-comparison

Conversation

@MukundaKatta
Copy link
Copy Markdown

Fixes: #60239

This updates the assert.deepStrictEqual() comparison details to explicitly mention that object constructors are compared when available.

The behavior was already documented for Assert's skipPrototype option and util.isDeepStrictEqual(), but the assert.deepStrictEqual() comparison list omitted it.

Validation:

  • git diff --check
  • node tools/lint-md/lint-md.mjs doc/api/assert.md

@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 May 15, 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