Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update example of using await in REPL #57653

Conversation

dario-piotrowicz
Copy link
Contributor

@dario-piotrowicz dario-piotrowicz commented Mar 28, 2025

Note

I'm just trying to do a bit of caretaking here and trying to resolve this stalled PR: #45939
credit to the original author @deokjinkim 🙂

Clarify that the lexical scope of const is
invalidated when using top-level await in REPL.

As part of this change also add tests for the
documented behavior

Fixes: #45918

Clarify that the lexical scope of `const` is
invalidated when using top-level `await` in REPL.

As part of this change also add tests for the
documented behavior

Fixes: nodejs#45918

Co-authored-by: Antoine du Hamel <[email protected]>
Co-authored-by: Dario Piotrowicz <[email protected]>
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Mar 28, 2025
Copy link

codecov bot commented Mar 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.23%. Comparing base (1123585) to head (733b9b8).
Report is 65 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #57653   +/-   ##
=======================================
  Coverage   90.22%   90.23%           
=======================================
  Files         630      630           
  Lines      185055   185055           
  Branches    36216    36221    +5     
=======================================
+ Hits       166975   166976    +1     
- Misses      11042    11044    +2     
+ Partials     7038     7035    -3     

see 29 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 that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Mar 28, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 1, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 5, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 5, 2025
@nodejs-github-bot nodejs-github-bot merged commit 13e3aef into nodejs:main Apr 5, 2025
68 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 13e3aef

@dario-piotrowicz dario-piotrowicz deleted the dario/45918/REPL-await-const-docs branch April 5, 2025 22:15
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lexical scoping of the const is not invalidated when use await in REPL
5 participants