From 9c5ddf7c69f0d3ddaa93b194f0020944569e0e3e Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 15 Mar 2024 21:14:47 -0700 Subject: fix(ext/node): pass normalized watchFile handler to StatWatcher (#22940) Fixes https://github.com/denoland/deno/issues/22939 --- ext/node/polyfills/_fs/_fs_watch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/node/polyfills/_fs') diff --git a/ext/node/polyfills/_fs/_fs_watch.ts b/ext/node/polyfills/_fs/_fs_watch.ts index 78903cd55..e94818da9 100644 --- a/ext/node/polyfills/_fs/_fs_watch.ts +++ b/ext/node/polyfills/_fs/_fs_watch.ts @@ -211,7 +211,7 @@ export function watchFile( statWatchers.set(watchPath, stat); } - stat.addListener("change", listener!); + stat.addListener("change", handler); return stat; } -- cgit v1.2.3