GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — vfs: promises.watch() resolves `{ done: true }` instead of rejecting with a pre-aborted signal · Issue #66253 · nodejs/node

vfs: promises.watch() resolves { done: true } instead of rejecting with a pre-aborted signal #66253

New issue
Copy link
New issue
Copy link
Closed
#66254
Closed
vfs: promises.watch() resolves { done: true } instead of rejecting with a pre-aborted signal#66253
#66254
Copy link
Assignees
trivikr
Labels
vfsIssues and PRs related to the virtual filesystem subsystem.

Description

@trivikr
trivikr
opened on Sep 24, 2026
Issue body actions

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.abort()
});
iter.next().then(
  (r) => console.log('resolved:', r),
  (e) => console.log('rejected:', e.code),
);

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

.next() rejects with AbortError (code: 'ABORT_ERR'), matching native fs.promises.watch(dir, { signal: AbortSignal.abort() }).next(), which rejects with ABORT_ERR.

What do you see instead?

resolved: { done: true, value: undefined }

The iterator silently completes.

Additional information

No response

Activity

  1. trivikr
    self-assigned this
    on Sep 24, 2026
  2. trivikr
    added
    vfsIssues and PRs related to the virtual filesystem subsystem.
    on Sep 24, 2026
  3. nodejs-github-bot
    closed this as completedin #66254on Oct 22, 2026
  4. dnalborczyk
    added a commit that references this issue on Oct 22, 2026

    vfs: fix promises.watch() with an already-aborted signal

    fcb1aa8
  5. aduh95
    added a commit that references this issue on Nov 12, 2026

    vfs: fix promises.watch() with an already-aborted signal

    4956a1f
  6. gabylb
    added a commit that references this issue on Nov 27, 2026

    vfs: fix promises.watch() with an already-aborted signal

    4d20f13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @trivikr
    trivikr

Labels

vfsIssues and PRs related to the virtual filesystem subsystem.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.