-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
fs: remove IIFE in glob #58418
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
fs: remove IIFE in glob #58418
Conversation
@@ -3171,15 +3172,11 @@ function glob(pattern, options, callback) { | |||
callback = makeCallback(callback); | |||
|
|||
const Glob = lazyGlob(); | |||
// TODO: Use iterator helpers when available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment was marked as outdated.
This comment was marked as outdated.
callback(err); | ||
} | ||
})(); | ||
PromisePrototypeThen( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the catch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the second argument to then()
:
Line 3178 in 8b29b14
callback, |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58418 +/- ##
==========================================
- Coverage 90.21% 90.19% -0.02%
==========================================
Files 635 635
Lines 187171 187168 -3
Branches 36751 36752 +1
==========================================
- Hits 168856 168825 -31
- Misses 11081 11126 +45
+ Partials 7234 7217 -17
🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
Commit Queue failed- Loading data for nodejs/node/pull/58418 ✔ Done loading data for nodejs/node/pull/58418 ----------------------------------- PR info ------------------------------------ Title fs: remove IIFE in glob (#58418) Author Livia Medeiros <livia@cirno.name> (@LiviaMedeiros) Branch LiviaMedeiros:fs-glob-no-iife -> nodejs:main Labels fs, author ready, needs-ci Commits 4 - fs: remove IIFE in glob - squash: remove obsolete comment - squash: add test - squash: simplify test Committers 1 - LiviaMedeiros <livia@cirno.name> PR-URL: https://github.com/nodejs/node/pull/58418 Refs: https://github.com/nodejs/node/issues/58419 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/58418 Refs: https://github.com/nodejs/node/issues/58419 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> -------------------------------------------------------------------------------- ℹ This PR was created on Thu, 22 May 2025 09:36:40 GMT ✔ Approvals: 1 ✔ - Zeyu "Alex" Yang (@himself65): https://github.com/nodejs/node/pull/58418#pullrequestreview-2898789800 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2025-06-06T06:03:35Z: https://ci.nodejs.org/job/node-test-pull-request/67290/ - Querying data for job/node-test-pull-request/67290/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 58418 From https://github.com/nodejs/node * branch refs/pull/58418/merge -> FETCH_HEAD ✔ Fetched commits as ef2e0848ba36..8b29b1401c4f -------------------------------------------------------------------------------- [main d0febdb384] fs: remove IIFE in glob Author: LiviaMedeiros <livia@cirno.name> Date: Wed May 21 20:49:42 2025 +0800 1 file changed, 6 insertions(+), 8 deletions(-) [main 736ad5e41f] squash: remove obsolete comment Author: LiviaMedeiros <livia@cirno.name> Date: Thu May 22 17:33:44 2025 +0800 1 file changed, 1 deletion(-) [main f2a28abd23] squash: add test Author: LiviaMedeiros <livia@cirno.name> Date: Thu May 22 17:34:33 2025 +0800 1 file changed, 21 insertions(+) create mode 100644 test/parallel/test-fs-glob-throw.mjs [main 7e18d51696] squash: simplify test Author: LiviaMedeiros <livia@cirno.name> Date: Thu May 22 17:51:27 2025 +0800 1 file changed, 3 insertions(+), 8 deletions(-) ✔ Patches applied There are 4 commits in the PR. Attempting autorebase. Rebasing (2/8) Executing: git node land --amend --yes --------------------------------- New Message ---------------------------------- fs: remove IIFE in globhttps://github.com/nodejs/node/actions/runs/15714419655 |
PR-URL: nodejs#58418 Refs: nodejs#58419 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
8b29b14
to
5584cc5
Compare
Landed in 5584cc5 |
Refs: #58419