summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_fs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-03-15 21:14:47 -0700
committerGitHub <noreply@github.com>2024-03-16 09:44:47 +0530
commit9c5ddf7c69f0d3ddaa93b194f0020944569e0e3e (patch)
treebc5fd51663b842ed11f6562c71e842219d479bef /ext/node/polyfills/_fs
parentab67b4c645dc34619e09c2f9f36c18122b11a307 (diff)
fix(ext/node): pass normalized watchFile handler to StatWatcher (#22940)
Fixes https://github.com/denoland/deno/issues/22939
Diffstat (limited to 'ext/node/polyfills/_fs')
-rw-r--r--ext/node/polyfills/_fs/_fs_watch.ts2
1 files changed, 1 insertions, 1 deletions
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;
}