diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-04 11:49:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 10:49:31 +0000 |
commit | 5ee671311a174b5461483db788f732fe736b6549 (patch) | |
tree | 7313593110d31be8d102a5a499c29abce8f4ebe1 /runtime/js/99_main.js | |
parent | 31ecc09b5ae38531cb63680cc40b89d01d8635df (diff) |
chore: remove some dead code around DENO_FUTURE env var (#25418)
These codepaths were not used anymore.
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 1ffb4f6e3..6dd75b415 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -576,12 +576,11 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) { 6: hasNodeModulesDir, 7: argv0, 8: nodeDebug, - 9: future, - 10: mode, - 11: servePort, - 12: serveHost, - 13: serveIsMain, - 14: serveWorkerCount, + 9: mode, + 10: servePort, + 11: serveHost, + 12: serveIsMain, + 13: serveWorkerCount, } = runtimeOptions; if (mode === executionModes.serve) { @@ -668,7 +667,7 @@ 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 = future; + internals.future = true; removeImportedOps(); @@ -798,7 +797,7 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) { nodeDebug, }); } - if (future) { + if (internals.future) { delete globalThis.window; delete Deno.Buffer; delete Deno.File; @@ -835,13 +834,12 @@ function bootstrapWorkerRuntime( 6: hasNodeModulesDir, 7: argv0, 8: nodeDebug, - 9: future, } = 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 = future; + internals.future = true; performance.setTimeOrigin(DateNow()); globalThis_ = globalThis; @@ -964,7 +962,7 @@ function bootstrapWorkerRuntime( }); } - if (future) { + if (internals.future) { delete Deno.Buffer; delete Deno.File; delete Deno.FsFile.prototype.rid; |