summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index c66732331..a66a1660e 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -678,6 +678,11 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) {
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;
+
removeImportedOps();
deprecatedApiWarningDisabled = shouldDisableDeprecatedApiWarning;
@@ -840,6 +845,11 @@ function bootstrapWorkerRuntime(
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;
+
deprecatedApiWarningDisabled = shouldDisableDeprecatedApiWarning;
verboseDeprecatedApiWarning = shouldUseVerboseDeprecatedApiWarning;
performance.setTimeOrigin(DateNow());