summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-05 08:19:34 -0400
committerGitHub <noreply@github.com>2023-03-05 12:19:34 +0000
commitde0d148d933520e7ee519576c83e4ca282ee9021 (patch)
treed54f8fd691691ef5df08b61d3c558273f08bcab8 /runtime/worker.rs
parentd4807f458e852e6a8385a852e7caf9dd4a5b54f7 (diff)
refactor(runtime): merge "spawn" into "process" (#18022)
This commit merges "runtime/js/40_spawn.js" into "runtime/js/40_process.js", and "runtime::ops::spawn" into "runtime::ops::process". It makes little sense to have them separated given that we want to factor out these APIs into a separate extension crate.
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 1f567837a..8fa17a7f5 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -254,7 +254,6 @@ impl MainWorker {
options.web_worker_pre_execute_module_cb.clone(),
options.format_js_error_fn.clone(),
),
- ops::spawn::init(),
ops::fs_events::init(),
ops::fs::init::<PermissionsContainer>(),
deno_io::init(options.stdio),
@@ -269,7 +268,7 @@ impl MainWorker {
deno_node::init::<PermissionsContainer>(options.npm_resolver),
ops::os::init(exit_code.clone()),
ops::permissions::init(),
- ops::process::init(),
+ ops::process::init_ops(),
ops::signal::init(),
ops::tty::init(),
deno_http::init(),