Title: vfs: promises.watch() resolves `{ done: true }` instead of rejecting with a pre-aborted signal · Issue #66253 · nodejs/node · GitHub
Open Graph Title: vfs: promises.watch() resolves `{ done: true }` instead of rejecting with a pre-aborted signal · Issue #66253 · nodejs/node
X Title: vfs: promises.watch() resolves `{ done: true }` instead of rejecting with a pre-aborted signal · Issue #66253 · nodejs/node
Description: Version main Platform All Subsystem vfs What steps will reproduce the bug? import { create } from 'node:vfs'; const myVfs = create(); myVfs.writeFileSync('/p.txt', 'a'); const iter = myVfs.promises.watch('/p.txt', { signal: AbortSignal.a...
Open Graph Description: Version main Platform All Subsystem vfs What steps will reproduce the bug? import { create } from 'node:vfs'; const myVfs = create(); myVfs.writeFileSync('/p.txt', 'a'); const iter = myVfs.promises...
X Description: Version main Platform All Subsystem vfs What steps will reproduce the bug? import { create } from 'node:vfs'; const myVfs = create(); myVfs.writeFileSync('/p.txt', 'a'); con...
Opengraph URL: https://github.com/nodejs/node/issues/66253
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"vfs: promises.watch() resolves `{ done: true }` instead of rejecting with a pre-aborted signal","articleBody":"### Version\n\nmain\n\n### Platform\n\n```text\nAll\n```\n\n### Subsystem\n\nvfs\n\n### What steps will reproduce the bug?\n\n```js\nimport { create } from 'node:vfs';\n\nconst myVfs = create();\nmyVfs.writeFileSync('/p.txt', 'a');\n\nconst iter = myVfs.promises.watch('/p.txt', {\n signal: AbortSignal.abort()\n});\niter.next().then(\n (r) => console.log('resolved:', r),\n (e) => console.log('rejected:', e.code),\n);\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\n`.next()` rejects with `AbortError` (`code: 'ABORT_ERR'`), matching native `fs.promises.watch(dir, { signal: AbortSignal.abort() }).next()`, which rejects with `ABORT_ERR`.\n\n### What do you see instead?\n\n```console\nresolved: { done: true, value: undefined }\n```\n\nThe iterator silently completes.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-09-24T02:15:32Z","url":"https://github.com/nodejs/node/issues/66253"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2b491a76-a16b-0755-e1b0-0bbc41740a00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97D6:274E6C:105A9C:164A31:6AFBFB08 |
| html-safe-nonce | eb3ba93002522e263f9c607918221eb2ea68a5f218d4bb24d32deca72fffccad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0Q2OjI3NEU2QzoxMDVBOUM6MTY0QTMxOjZBRkJGQjA4IiwidmlzaXRvcl9pZCI6IjgxMDA2Mjg2ODc5NTY0NzQ2MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c47c0e97377659f186fa4de53a10917bb031f0920a88c94191dd465fe9abd67d |
| hovercard-subject-tag | issue:5562038340 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/66253/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1116e4f7345348d8e644f9f7d5ab013b72b3c784d02746132fa4f0a0fab25eeb/nodejs/node/issues/66253 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1116e4f7345348d8e644f9f7d5ab013b72b3c784d02746132fa4f0a0fab25eeb/nodejs/node/issues/66253 |
| og:image:alt | Version main Platform All Subsystem vfs What steps will reproduce the bug? import { create } from 'node:vfs'; const myVfs = create(); myVfs.writeFileSync('/p.txt', 'a'); const iter = myVfs.promises... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trivikr |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width