summaryrefslogtreecommitdiff
path: root/cli/ops
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-01-21 15:53:29 +0100
committerGitHub <noreply@github.com>2020-01-21 15:53:29 +0100
commit5e2fd183ff1fe240ddbd864dbf1e6a0941fb4582 (patch)
treebf550552bd54e7adbd87749ae663b8fafb2c4f0d /cli/ops
parent0cd605515c99458fa80cd4a1a3906f3db37a86ca (diff)
refactor: Rename JS entry functions (#3732)
Diffstat (limited to 'cli/ops')
-rw-r--r--cli/ops/worker_host.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/ops/worker_host.rs b/cli/ops/worker_host.rs
index c17dee444..6ac48228d 100644
--- a/cli/ops/worker_host.rs
+++ b/cli/ops/worker_host.rs
@@ -115,7 +115,7 @@ fn op_create_worker(
let name = format!("USER-WORKER-{}", specifier);
let mut worker =
WebWorker::new(name, startup_data::deno_isolate_init(), child_state, ext);
- js_check(worker.execute("workerMain()"));
+ js_check(worker.execute("bootstrapWorkerRuntime()"));
let worker_id = parent_state.add_child_worker(worker.clone());
@@ -269,7 +269,7 @@ fn op_host_resume_worker(
let mut workers_table = state_.workers.lock().unwrap();
let worker = workers_table.get_mut(&id).unwrap();
- js_check(worker.execute("workerMain()"));
+ js_check(worker.execute("bootstrapWorkerRuntime()"));
Ok(JsonOp::Sync(json!({})))
}