From 9b34b7ed1862c4b7bd84d52cd3417f5a1592efc4 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Sun, 7 Apr 2024 17:46:39 +1000 Subject: FUTURE(ext/fs): remove `Deno.FsWatcher.prototype.rid` (#23234) --- runtime/js/40_fs_events.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runtime/js') diff --git a/runtime/js/40_fs_events.js b/runtime/js/40_fs_events.js index 3493ddcd9..d7aa5de05 100644 --- a/runtime/js/40_fs_events.js +++ b/runtime/js/40_fs_events.js @@ -11,6 +11,7 @@ const { ObjectPrototypeIsPrototypeOf, PromiseResolve, SymbolAsyncIterator, + ObjectDefineProperty, } = primordials; import { SymbolDispose } from "ext:deno_web/00_infra.js"; @@ -20,6 +21,12 @@ class FsWatcher { #promise; constructor(paths, options) { + if (internals.future) { + ObjectDefineProperty(this, "rid", { + enumerable: false, + value: undefined, + }); + } const { recursive } = options; this.#rid = op_fs_events_open({ recursive, paths }); } -- cgit v1.2.3