Skip to content

util: add skipPrototype option to deep equality checks#59762

Merged
nodejs-github-bot merged 17 commits intonodejs:mainfrom
miguelmarcondesf:assert/skip-prot-comparison
Sep 14, 2025
Merged

util: add skipPrototype option to deep equality checks#59762
nodejs-github-bot merged 17 commits intonodejs:mainfrom
miguelmarcondesf:assert/skip-prot-comparison

Conversation

@miguelmarcondesf
Copy link
Contributor

@miguelmarcondesf miguelmarcondesf commented Sep 4, 2025

Adds a new skipPrototype option to util.isDeepStrictEqual() and assert.deepStrictEqual() methods that allows skipping prototype and constructor comparison during deep strict equality checks.

cc @BridgeAR

Loading
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. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants