Skip to content

repl: fix promise regression - #67721

Open
avivkeller wants to merge 1 commit into
nodejs:mainfrom
avivkeller:promise-repl
Open

avivkeller wants to merge 1 commit into
nodejs:mainfrom
avivkeller:promise-repl

Conversation

@avivkeller

Copy link
Copy Markdown
Member

Fixes #67619 by removing the double await we did previously

Signed-off-by: avivkeller <me@aviv.sh>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. repl Issues and PRs related to the REPL subsystem. labels Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.55%. Comparing base (2566f1b) to head (6448bfc).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #67721   +/-   ##
=======================================
  Coverage   90.54%   90.55%           
=======================================
  Files         801      801           
  Lines      284119   284109   -10     
  Branches    54882    54877    -5     
=======================================
+ Hits       257257   257267   +10     
+ Misses      17022    17009   -13     
+ Partials     9840     9833    -7     
Files with missing lines Coverage Δ
lib/internal/repl/eval.js 93.10% <ø> (-0.06%) ⬇️
lib/internal/repl/inspector.js 90.34% <100.00%> (-0.47%) ⬇️
lib/internal/repl/utils.js 96.94% <100.00%> (+0.01%) ⬆️

... and 31 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.

@aduh95 aduh95 added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Nov 23, 2026
Comment on lines 13 to 18
// is awaiting it to verify that the inspector keeps it alive until settlement.
await run(`new Promise((resolve) => setImmediate(() => {
await run(`await new Promise((resolve) => setImmediate(() => {
globalThis.gc();
resolve(42);
}))\n`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this test was specifically about the implicit await behavior. Adding the await makes it not match the comment anymore.

@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 23, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. needs-ci PRs that need a full CI run. repl Issues and PRs related to the REPL subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Node.js 27 regression: repl implicitly awaits Promise objects

4 participants