mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Attempt to fix watcher issue with repl.it
This commit is contained in:
@@ -1138,7 +1138,8 @@ pub const VirtualMachine = struct {
|
||||
|
||||
if (vm.watcher) |watcher| {
|
||||
if (watcher.indexOf(hash)) |index| {
|
||||
fd = watcher.watchlist.items(.fd)[index];
|
||||
const _fd = watcher.watchlist.items(.fd)[index];
|
||||
fd = if (_fd > 0) _fd else null;
|
||||
package_json = watcher.watchlist.items(.package_json)[index];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user