diff options
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 3f75ebc5c..5c252e92c 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -144,6 +144,7 @@ struct SharedWorkerState { maybe_lockfile: Option<Arc<Mutex<Lockfile>>>, feature_checker: Arc<FeatureChecker>, node_ipc: Option<i64>, + enable_future_features: bool, disable_deprecated_api_warning: bool, verbose_deprecated_api_warning: bool, } @@ -424,6 +425,7 @@ impl CliMainWorkerFactory { feature_checker: Arc<FeatureChecker>, options: CliMainWorkerOptions, node_ipc: Option<i64>, + enable_future_features: bool, disable_deprecated_api_warning: bool, verbose_deprecated_api_warning: bool, ) -> Self { @@ -446,6 +448,7 @@ impl CliMainWorkerFactory { maybe_lockfile, feature_checker, node_ipc, + enable_future_features, disable_deprecated_api_warning, verbose_deprecated_api_warning, }), @@ -612,6 +615,7 @@ impl CliMainWorkerFactory { node_ipc_fd: shared.node_ipc, disable_deprecated_api_warning: shared.disable_deprecated_api_warning, verbose_deprecated_api_warning: shared.verbose_deprecated_api_warning, + future: shared.enable_future_features, }, extensions: custom_extensions, startup_snapshot: crate::js::deno_isolate_init(), @@ -818,6 +822,7 @@ fn create_web_worker_callback( node_ipc_fd: None, disable_deprecated_api_warning: shared.disable_deprecated_api_warning, verbose_deprecated_api_warning: shared.verbose_deprecated_api_warning, + future: false, }, extensions: vec![], startup_snapshot: crate::js::deno_isolate_init(), |