summaryrefslogtreecommitdiff
path: root/runtime/ops/worker_host.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-05-17 21:27:17 +0100
committerGitHub <noreply@github.com>2022-05-17 22:27:17 +0200
commit330c820ae8d7826dfe3d88c01ba07728121fa021 (patch)
treea5c0216f5cba4ea503e9cba3b0abdd8d4290c123 /runtime/ops/worker_host.rs
parentf57aac77ff9ce514730504066daca0a61a959d32 (diff)
BREAKING(unstable): Enable Deno namespace in workers by default (#14581)
This commit removes "WorkerOptions.deno" option as a boolean, as well as "WorkerOptions.deno.namespace" settings. Starting with this commit all workers have access to "Deno" namespace by default.
Diffstat (limited to 'runtime/ops/worker_host.rs')
-rw-r--r--runtime/ops/worker_host.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/runtime/ops/worker_host.rs b/runtime/ops/worker_host.rs
index f8831d4e9..d869e5871 100644
--- a/runtime/ops/worker_host.rs
+++ b/runtime/ops/worker_host.rs
@@ -36,7 +36,6 @@ pub struct CreateWebWorkerArgs {
pub parent_permissions: Permissions,
pub permissions: Permissions,
pub main_module: ModuleSpecifier,
- pub use_deno_namespace: bool,
pub worker_type: WebWorkerType,
pub maybe_exit_code: Option<Arc<AtomicI32>>,
}
@@ -133,7 +132,6 @@ pub struct CreateWorkerArgs {
permissions: Option<ChildPermissionsArg>,
source_code: String,
specifier: String,
- use_deno_namespace: bool,
worker_type: WebWorkerType,
}
@@ -150,10 +148,6 @@ fn op_create_worker(
None
};
let args_name = args.name;
- let use_deno_namespace = args.use_deno_namespace;
- if use_deno_namespace {
- super::check_unstable(state, "Worker.deno.namespace");
- }
let worker_type = args.worker_type;
if let WebWorkerType::Classic = worker_type {
if let TestingFeaturesEnabled(false) = state.borrow() {
@@ -216,7 +210,6 @@ fn op_create_worker(
parent_permissions,
permissions: worker_permissions,
main_module: module_specifier.clone(),
- use_deno_namespace,
worker_type,
maybe_exit_code,
});