Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

assert,util: fix stale nested cycle memo entries#62509

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainnodejs/node:mainfrom
BridgeAR:BridgeAR/2026-03-29-fix-comparisonBridgeAR/node:BridgeAR/2026-03-29-fix-comparisonCopy head branch name to clipboard
Apr 9, 2026
Merged

assert,util: fix stale nested cycle memo entries#62509
nodejs-github-bot merged 1 commit into
nodejs:mainnodejs/node:mainfrom
BridgeAR:BridgeAR/2026-03-29-fix-comparisonBridgeAR/node:BridgeAR/2026-03-29-fix-comparisonCopy head branch name to clipboard

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

Temporary nested cycle-tracking entries could remain in the memory set after a successful comparison. If a later sibling comparison reused one of those objects, deepStrictEqual could incorrectly fail for equivalent structures.
This cleans up the temporary nested entries after the nested comparison returns.

Fixes: #62422

Temporary nested cycle-tracking entries could remain in the memory set
after a successful comparison. If a later sibling comparison reused one
of those objects, deepStrictEqual could incorrectly fail for equivalent
structures.
This cleans up the temporary nested entries after the nested
comparison returns.

Fixes: nodejs#62422
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module. labels Mar 30, 2026
@codecov

codecov Bot commented Mar 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.71%. Comparing base (784ca7b) to head (3fb03d9).
⚠️ Report is 512 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62509      +/-   ##
==========================================
- Coverage   89.77%   89.71%   -0.07%     
==========================================
  Files         673      692      +19     
  Lines      203840   214043   +10203     
  Branches    39180    41058    +1878     
==========================================
+ Hits       182998   192024    +9026     
- Misses      13156    14095     +939     
- Partials     7686     7924     +238     
Files with missing lines Coverage Δ
lib/internal/util/comparisons.js 99.71% <100.00%> (+<0.01%) ⬆️

... and 295 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@BridgeAR BridgeAR added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Mar 30, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 30, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@BridgeAR BridgeAR added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 9, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 9, 2026
@nodejs-github-bot nodejs-github-bot merged commit 8db9d43 into nodejs:main Apr 9, 2026
79 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 8db9d43

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 10, 2026
aduh95 pushed a commit that referenced this pull request May 5, 2026
Temporary nested cycle-tracking entries could remain in the memory set
after a successful comparison. If a later sibling comparison reused one
of those objects, deepStrictEqual could incorrectly fail for equivalent
structures.
This cleans up the temporary nested entries after the nested
comparison returns.

Fixes: #62422
PR-URL: #62509
Fixes: #62422
Reviewed-By: Jordan Harband <ljharb@gmail.com>
aduh95 pushed a commit that referenced this pull request May 7, 2026
Temporary nested cycle-tracking entries could remain in the memory set
after a successful comparison. If a later sibling comparison reused one
of those objects, deepStrictEqual could incorrectly fail for equivalent
structures.
This cleans up the temporary nested entries after the nested
comparison returns.

Fixes: #62422
PR-URL: #62509
Fixes: #62422
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module.

Projects

None yet

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.