summaryrefslogtreecommitdiff
path: root/runtime/worker_bootstrap.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-02-15 10:20:17 +0530
committerGitHub <noreply@github.com>2024-02-15 04:50:17 +0000
commitb72f0be27c382f2d4e5d272ce9ed2211af584d80 (patch)
tree6b896e59f63cbe0f49d47f58832d5c3440e6ef03 /runtime/worker_bootstrap.rs
parent1ad754b4123009e01dbecb3b880e7f0545e46c2f (diff)
chore: add DENO_FUTURE env var (#22318)
Closes https://github.com/denoland/deno/issues/22315 ``` ~> DENO_FUTURE=1 target/debug/deno > globalThis.window undefined ```
Diffstat (limited to 'runtime/worker_bootstrap.rs')
-rw-r--r--runtime/worker_bootstrap.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/worker_bootstrap.rs b/runtime/worker_bootstrap.rs
index ca2d4d8ec..300829630 100644
--- a/runtime/worker_bootstrap.rs
+++ b/runtime/worker_bootstrap.rs
@@ -62,6 +62,7 @@ pub struct BootstrapOptions {
pub node_ipc_fd: Option<i64>,
pub disable_deprecated_api_warning: bool,
pub verbose_deprecated_api_warning: bool,
+ pub future: bool,
}
impl Default for BootstrapOptions {
@@ -92,6 +93,7 @@ impl Default for BootstrapOptions {
node_ipc_fd: None,
disable_deprecated_api_warning: false,
verbose_deprecated_api_warning: false,
+ future: false,
}
}
}
@@ -125,6 +127,8 @@ struct BootstrapV8<'a>(
bool,
// verbose_deprecated_api_warning
bool,
+ // future
+ bool,
);
impl BootstrapOptions {
@@ -146,6 +150,7 @@ impl BootstrapOptions {
self.maybe_binary_npm_command_name.as_deref(),
self.disable_deprecated_api_warning,
self.verbose_deprecated_api_warning,
+ self.future,
);
bootstrap.serialize(ser).unwrap()