diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-16 09:28:35 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 09:28:35 +1000 |
commit | e4ea9be87463ce1b13e826db80452b17a9762f32 (patch) | |
tree | 6f7aa2881fb8dbf08a0ebc99dfc2c85eb3a73d15 /runtime/js | |
parent | a666c8c9f92d87e7a3b4d4e06fdc027b3bf9663e (diff) |
chore: cleanup remaining `internals.future` code (#25624)
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/40_fs_events.js | 8 | ||||
-rw-r--r-- | runtime/js/98_global_scope_window.js | 1 | ||||
-rw-r--r-- | runtime/js/99_main.js | 13 |
3 files changed, 0 insertions, 22 deletions
diff --git a/runtime/js/40_fs_events.js b/runtime/js/40_fs_events.js index 2140f29eb..a1c40c5e5 100644 --- a/runtime/js/40_fs_events.js +++ b/runtime/js/40_fs_events.js @@ -11,7 +11,6 @@ const { ObjectPrototypeIsPrototypeOf, PromiseResolve, SymbolAsyncIterator, - ObjectDefineProperty, } = primordials; import { SymbolDispose } from "ext:deno_web/00_infra.js"; @@ -21,13 +20,6 @@ class FsWatcher { #promise; constructor(paths, options) { - if (internals.future) { - ObjectDefineProperty(this, "rid", { - __proto__: null, - enumerable: false, - value: undefined, - }); - } const { recursive } = options; this.#rid = op_fs_events_open({ recursive, paths }); } diff --git a/runtime/js/98_global_scope_window.js b/runtime/js/98_global_scope_window.js index 27a3d309a..098422f56 100644 --- a/runtime/js/98_global_scope_window.js +++ b/runtime/js/98_global_scope_window.js @@ -112,7 +112,6 @@ const mainRuntimeGlobalProperties = { Location: location.locationConstructorDescriptor, location: location.locationDescriptor, Window: globalInterfaces.windowConstructorDescriptor, - window: core.propGetterOnly(() => globalThis), self: core.propGetterOnly(() => globalThis), Navigator: core.propNonEnumerable(Navigator), navigator: core.propGetterOnly(() => navigator), diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index aaf12a1c4..944a9f4a4 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -641,11 +641,6 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) { }); } - // TODO(iuioiua): remove in Deno v2. This allows us to dynamically delete - // class properties within constructors for classes that are not defined - // within the Deno namespace. - internals.future = true; - removeImportedOps(); performance.setTimeOrigin(DateNow()); @@ -834,9 +829,6 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) { nodeDebug, }); } - if (internals.future) { - delete globalThis.window; - } } else { // Warmup } @@ -865,11 +857,6 @@ function bootstrapWorkerRuntime( 7: nodeDebug, } = runtimeOptions; - // TODO(iuioiua): remove in Deno v2. This allows us to dynamically delete - // class properties within constructors for classes that are not defined - // within the Deno namespace. - internals.future = true; - performance.setTimeOrigin(DateNow()); globalThis_ = globalThis; |