Skip to content

Commit 377f6e9

Browse files
fixup! "fs: add AbortSignal support to watch"
Co-authored-by: Darshan Sen <raisinten@gmail.com>
1 parent e83d879 commit 377f6e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-fs-watch-abort-signal.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const fixtures = require('../common/fixtures');
1717
const file = fixtures.path('empty.js');
1818
const ac = new AbortController();
1919
const { signal } = ac;
20-
const wathcer = fs.watch(file, { signal });
21-
wathcer.once('close', common.mustCall());
20+
const watcher = fs.watch(file, { signal });
21+
watcher.once('close', common.mustCall());
2222
setImmediate(() => ac.abort());
2323
}
2424
{

0 commit comments

Comments
 (0)