GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — vfs: fix promises.watch() with an already-aborted signal by trivikr · Pull Request #66254 · nodejs/node Conversation
Member
Fixes: #66253
Buffer the AbortError in VFSWatchAsyncIterable so the first Assisted-by: opencode
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsfs.promises.watch() over a virtual mount resolved the first next()
with { done: true } when the signal was already aborted, while native
fs.promises.watch() rejects with ABORT_ERR.
Buffer the AbortError in VFSWatchAsyncIterable so the first next()
rejects once and later calls behave like an exhausted iterator,
matching the native async generator. Concurrently pending next()
calls now resolve after the rejecting one instead of all rejecting.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: opencode
|
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #66254 +/- ## ======================================= Coverage 90.28% 90.28% ======================================= Files 789 789 Lines 272878 272893 +15 Branches 52097 52102 +5 ======================================= + Hits 246360 246380 +20 + Misses 16975 16973 -2 + Partials 9543 9540 -3
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
cc @mcollina Can you take a look? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in fcb1aa8 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
fs.promises.watch() over a virtual mount resolved the first next()
with { done: true } when the signal was already aborted, while native
fs.promises.watch() rejects with ABORT_ERR.
Buffer the AbortError in VFSWatchAsyncIterable so the first next()
rejects once and later calls behave like an exhausted iterator,
matching the native async generator. Concurrently pending next()
calls now resolve after the rejecting one instead of all rejecting.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: opencode
PR-URL: #66254
Fixes: #66253
Reviewed-By: Matteo Collina <[email protected]>
fs.promises.watch() over a virtual mount resolved the first next()
with { done: true } when the signal was already aborted, while native
fs.promises.watch() rejects with ABORT_ERR.
Buffer the AbortError in VFSWatchAsyncIterable so the first next()
rejects once and later calls behave like an exhausted iterator,
matching the native async generator. Concurrently pending next()
calls now resolve after the rejecting one instead of all rejecting.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: opencode
PR-URL: nodejs#66254
Fixes: nodejs#66253
Reviewed-By: Matteo Collina <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
vfs: promises.watch() resolves{ done: true } instead of rejecting with a pre-aborted signal
There was an error while loading. Please reload this page.