aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/node/node_fs_watcher.zig
diff options
context:
space:
mode:
authorGravatar Ashcon Partovi <ashcon@partovi.net> 2023-07-25 23:55:39 -0700
committerGravatar Ashcon Partovi <ashcon@partovi.net> 2023-07-25 23:55:39 -0700
commit57928f7e8061783bb7a4fb41f68d32b4b9c7bca2 (patch)
tree03c1205d6fb930ed45d41f949ebddf33de51215f /src/bun.js/node/node_fs_watcher.zig
parent6bfee02301a2e2a0b79339974af0445eb5a2688f (diff)
downloadbun-fs-watch-file.tar.gz
bun-fs-watch-file.tar.zst
bun-fs-watch-file.zip
Implement `fs.watchFile()`fs-watch-file
Closes #3812
Diffstat (limited to 'src/bun.js/node/node_fs_watcher.zig')
-rw-r--r--src/bun.js/node/node_fs_watcher.zig5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bun.js/node/node_fs_watcher.zig b/src/bun.js/node/node_fs_watcher.zig
index d0af350c0..4819b61fe 100644
--- a/src/bun.js/node/node_fs_watcher.zig
+++ b/src/bun.js/node/node_fs_watcher.zig
@@ -364,11 +364,6 @@ pub const FSWatcher = struct {
}
},
.directory => {
- // macOS should use FSEvents for directories
- if (comptime Environment.isMac) {
- @panic("Unexpected directory watch");
- }
-
const affected = event.names(changed_files);
for (affected) |changed_name_| {