Repository navigation
[REPL] Builtin objects cannot be accessed after delete globalThis - #2
wind-stream-staging[bot] wants to merge 1 commit into
Conversation
Duplicate of nodejs#67702 WS: session-iCXlj-X5OfXAjOex7EzHc Factory-Run: srun_1QkE87DNomQcLgLHLOK7 Factory-Attempt: satt_dUw4mVE8jchA4kJvuP8h Candidate-SHA256: 38d114834c8008de1723baa07f2c4c098f4733b14263fb4584a2a7d2a2844271
Comparison with the upstream proposalFactory independently found the same line as the upstream author. After a user deletes The two fixes differ when a user declares a variable with the same name as that internal storage. The Factory code still resolves the name in the user’s context. The upstream implementation captures an inspector handle to the storage object before user code runs and passes it directly when retrieving a value. That design was in the first upstream commit. The change to inspector message serialization came later during review. First upstream commit · Upstream PR For a follow-up, I’d pair upstream’s object-handle approach with the regression test from this PR. It checks that the next command runs normally after an unknown name raises a |
Validation of the Factory candidateI compared this PR at
Separately, the Factory worker reported that its new regression test failed on the baseline and passed with the patch, alongside seven existing focused REPL tests. It ran the checkout’s REPL/readline JavaScript on Node 24.11.0. Native Node 27, Windows, ESLint, and full CI were outside that run. For this first Factory build, the result demonstrates an independently produced fix for the reported behavior, a regression test that exercises the user-visible symptoms, and a reviewable patch delivered to the fork. |
Duplicate of nodejs#67702
Version
v27.0.0-alpha.0.1.1
Platform
Subsystem
No response
What steps will reproduce the bug?
In node repl:
What's more, when an undefined identifier is entered, the input behavior never stops.
How often does it reproduce? Is there a required condition?
always
Source: #1
Opened by Wind Stream's factory at the brief owner's request. The change was produced in an isolated sandbox run and verified into Wind Stream custody before this pull request was opened; nothing was pushed from a developer machine.
mainat a337566WS: session-iCXlj-X5OfXAjOex7EzHc