summaryrefslogtreecommitdiff
path: root/runtime/js/40_fs_events.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2024-01-11 07:37:25 +0900
committerGitHub <noreply@github.com>2024-01-10 15:37:25 -0700
commit515a34b4de222e35c7ade1b92614d746e73d4c2e (patch)
tree8284201fc826a33f12597959a8a8be14e0f524bd /runtime/js/40_fs_events.js
parentd4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (diff)
refactor: use `core.ensureFastOps()` (#21888)
Diffstat (limited to 'runtime/js/40_fs_events.js')
-rw-r--r--runtime/js/40_fs_events.js15
1 files changed, 10 insertions, 5 deletions
diff --git a/runtime/js/40_fs_events.js b/runtime/js/40_fs_events.js
index d5af0359b..13cacc36b 100644
--- a/runtime/js/40_fs_events.js
+++ b/runtime/js/40_fs_events.js
@@ -1,24 +1,29 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { core, primordials } from "ext:core/mod.js";
-const { BadResourcePrototype, InterruptedPrototype, ops } = core;
+const {
+ BadResourcePrototype,
+ InterruptedPrototype,
+} = core;
+const {
+ op_fs_events_open,
+ op_fs_events_poll,
+} = core.ensureFastOps();
const {
ArrayIsArray,
ObjectPrototypeIsPrototypeOf,
PromiseResolve,
SymbolAsyncIterator,
} = primordials;
+
import { SymbolDispose } from "ext:deno_web/00_infra.js";
-const {
- op_fs_events_poll,
-} = core.ensureFastOps();
class FsWatcher {
#rid = 0;
constructor(paths, options) {
const { recursive } = options;
- this.#rid = ops.op_fs_events_open({ recursive, paths });
+ this.#rid = op_fs_events_open({ recursive, paths });
}
get rid() {