diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-01-25 10:05:22 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 23:05:22 +0000 |
commit | 8dd71b6f1d5f30a44bb4dd37dc7a193f48191483 (patch) | |
tree | 644f324ca36415ac01eba855bb0b996fef30af1c | |
parent | b1230586f8d2e35b8cdaafd52e27f0f1e50f245b (diff) |
fix: don't call `.rid` in `Deno.FsWatcher.close()` (#22090)
Otherwise, a deprecation warning will be printed.
-rw-r--r-- | runtime/js/40_fs_events.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/js/40_fs_events.js b/runtime/js/40_fs_events.js index 4c7050b9f..21d552111 100644 --- a/runtime/js/40_fs_events.js +++ b/runtime/js/40_fs_events.js @@ -60,7 +60,7 @@ class FsWatcher { } close() { - core.close(this.rid); + core.close(this.#rid); } [SymbolAsyncIterator]() { |