summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-01-25 10:05:22 +1100
committerGitHub <noreply@github.com>2024-01-24 23:05:22 +0000
commit8dd71b6f1d5f30a44bb4dd37dc7a193f48191483 (patch)
tree644f324ca36415ac01eba855bb0b996fef30af1c /runtime/js
parentb1230586f8d2e35b8cdaafd52e27f0f1e50f245b (diff)
fix: don't call `.rid` in `Deno.FsWatcher.close()` (#22090)
Otherwise, a deprecation warning will be printed.
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_fs_events.js2
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]() {