8000 repl: fix getters triggering side effects during completion by dario-piotrowicz · Pull Request #61043 · nodejs/node · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@dario-piotrowicz
Copy link
Member

The changes in #59044 are incorrect, as pointed out by @BridgeAR here: #59044 (review)

Sorry somehow I totally missed that while reviewing the PR, 59044 added a try-catch around the check to see if an object property is a proxy, the reasoning being that the property could have a getter that could throw an error.
The correct solution is not to try-catch the property access, but to avoid it in the first place. We actually have already the logic to check if a property has a getter, so the correct solution consists simply in performing the proxy check after we've made sure that the property doesn't have a getter.

@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 Dec 13, 2025
@dario-piotrowicz dario-piotrowicz added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Dec 13, 2025
@dario-piotrowicz
Copy link
Member Author

By the way, thanks a lot for the comment there @BridgeAR! 🫶

@codecov
Copy link
codecov bot commented Dec 13, 2025

Codecov Report

❌ Patch coverage is 93.93939% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.53%. Comparing base (4f24aff) to head (b6cb5c9).
⚠️ Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/repl/completion.js 93.93% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #61043   +/-   ##
=======================================
  Coverage   88.53%   88.53%           
=======================================
  Files         703      703           
  Lines      208546   208537    -9     
  Branches    40217    40222    +5     
=======================================
- Hits       184634   184631    -3     
+ Misses      15926    15910   -16     
- Partials     7986     7996   +10     
Files with missing lines Coverage Δ
lib/internal/repl/completion.js 95.13% <93.93%> (+0.31%) ⬆️

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

dario-piotrowicz and others added 2 commits December 16, 2025 21:52
@dario-piotrowicz dario-piotrowicz added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 19, 2025
@aduh95 aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 19, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 19, 2025
@nodejs-github-bot
Copy link
Collaborator

@dario-piotrowicz dario-piotrowicz added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 19, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 19, 2025
@nodejs-github-bot
Copy link
Collaborator

@dario-piotrowicz dario-piotrowicz added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 19, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 19, 2025
@nodejs-github-bot
Copy link
Collaborator

@aduh95
Copy link
Contributor
aduh95 commented Dec 20, 2025

@dario-piotrowicz please do not repeatedly add the request-ci Add this label to start a Jenkins CI on a PR. label, that restarts all the Jankins jobs, risking oversubscribing our Jenkins infra and increasing the chance of landing a change introducing more flakiness.
Instead, you can add the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label and wait for someone to check the CI result and chose to resume only if the failure is indeed a fluke.

@nodejs-github-bot
Copy link
Collaborator

@dario-piotrowicz
Copy link
Member Author

@dario-piotrowicz please do not repeatedly add the request-ci Add this label to start a Jenkins CI on a PR. label, that restarts all the Jankins jobs, risking oversubscribing our Jenkins infra and increasing the chance of landing a change introducing more flakiness. Instead, you can add the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label and wait for someone to check the CI result and chose to resume only if the failure is indeed a fluke.

ok sorry about that 🙇

It seems like I've lost permissions to view the Jenkins results or manually retrigger the Jenkins jobs (thus why I just re-added the label), was the change intentional? or could I get perms back?

@aduh95
Copy link
Contributor
aduh95 commented Dec 20, 2025

See nodejs/build#4200 (comment)

@avivkeller avivkeller added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 20, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 20, 2025
@nodejs-github-bot nodejs-github-bot merged commit aad8c05 into nodejs:main Dec 20, 2025
78 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in aad8c05

MatricalDefunkt pushed a commit to MatricalDefunkt/node that referenced this pull request Dec 22, 2025
PR-URL: nodejs#61043
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Aviv Keller <me@aviv.sh>
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-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. 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.

6 participants

0