Skip to content

Conversation

BridgeAR
Copy link
Member

It is impossible to look into the content of a promise and it's state. This aligns the comparison with WeakMaps and WeakSets. Only reference equal promises will pass the check in the future.

Fixes #55198

@BridgeAR BridgeAR added the semver-major PRs that contain breaking changes and should be released in the next major version. label Aug 11, 2025
@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 Aug 11, 2025
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.89%. Comparing base (f993fca) to head (74ff4a7).
⚠️ Report is 51 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #59448   +/-   ##
=======================================
  Coverage   89.88%   89.89%           
=======================================
  Files         656      656           
  Lines      192947   192984   +37     
  Branches    37841    37858   +17     
=======================================
+ Hits       173427   173474   +47     
+ Misses      12054    12052    -2     
+ Partials     7466     7458    -8     
Files with missing lines Coverage Δ
lib/internal/util/comparisons.js 100.00% <100.00%> (ø)

... and 49 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 request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Aug 12, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 12, 2025
@nodejs-github-bot
Copy link
Collaborator

@Renegade334
Copy link
Contributor

Can this behaviour get a mention under the method descriptions in assert.md, as WeakMap/WeakSet do currently?

@lpinca
Copy link
Member

lpinca commented Aug 13, 2025

There is a typo in commit message "it's state" -> "its state".

@nodejs-github-bot
Copy link
Collaborator

It is impossible to look into the content of a promise and its
state. This aligns the comparison with WeakMaps and WeakSets.
Only reference equal promises will pass the check in the future.

Fixes nodejs#55198
@BridgeAR BridgeAR force-pushed the 2025-08-11-fail-promise-comparison branch from 23edea2 to 74ff4a7 Compare August 15, 2025 18:46
@BridgeAR
Copy link
Member Author

I just updated the docs and fixed the commit message typo. PTAL

@BridgeAR BridgeAR added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 18, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 18, 2025
@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 19, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 19, 2025
@nodejs-github-bot nodejs-github-bot merged commit 7c9fbc1 into nodejs:main Aug 19, 2025
60 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 7c9fbc1

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. needs-ci PRs that need a full CI run. semver-major PRs that contain breaking changes and should be released in the next major version. util Issues and PRs related to the built-in util module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

assert.deepEqual() report difference between promises during test
7 participants