Version
main
Platform
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
Version
main
Platform
Subsystem
vfs
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
.next()rejects withAbortError(code: 'ABORT_ERR'), matching nativefs.promises.watch(dir, { signal: AbortSignal.abort() }).next(), which rejects withABORT_ERR.What do you see instead?
resolved: { done: true, value: undefined }The iterator silently completes.
Additional information
No response