Skip to content

repl: do not depend on user-mutable globalThis - #67729

Open
aduh95 wants to merge 4 commits into
nodejs:mainfrom
aduh95:fix-repl-global-this
Open

aduh95 wants to merge 4 commits into
nodejs:mainfrom
aduh95:fix-repl-global-this

Conversation

@aduh95

@aduh95 aduh95 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Fixes: #67702

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@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

❌ Patch coverage is 86.58537% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.52%. Comparing base (3cac7b9) to head (cf7baaa).
⚠️ Report is 30 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/repl/inspector.js 84.44% 6 Missing and 1 partial ⚠️
lib/inspector.js 88.23% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67729      +/-   ##
==========================================
- Coverage   90.55%   90.52%   -0.03%     
==========================================
  Files         801      803       +2     
  Lines      284215   285168     +953     
  Branches    54883    55049     +166     
==========================================
+ Hits       257358   258149     +791     
- Misses      17014    17159     +145     
- Partials     9843     9860      +17     
Files with missing lines Coverage Δ
lib/internal/repl/eval.js 93.13% <100.00%> (-0.03%) ⬇️
lib/inspector.js 96.14% <88.23%> (-1.09%) ⬇️
lib/internal/repl/inspector.js 89.26% <84.44%> (-1.55%) ⬇️

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

Comment thread test/parallel/test-repl-inspector.mjs Resolved
Comment thread lib/internal/repl/inspector.js Resolved
Comment thread lib/internal/repl/inspector.js Resolved
Comment thread lib/internal/repl/inspector.js Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

[REPL] Builtin objects cannot be accessed after delete globalThis

5 participants