summaryrefslogtreecommitdiff
path: root/cli/standalone.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-08-16 21:00:35 -0400
committerGitHub <noreply@github.com>2022-08-16 21:00:35 -0400
commit868c7e38bfc9a09b5cfeae30ea5a2345a6d700d7 (patch)
tree555d1b5cb080aaddfdb8b70c0779086d243a984c /cli/standalone.rs
parent0b70c81f97a730fda353b6d06e589c3a2a558676 (diff)
feat(runtime): add pre_execute_module_cb (#15485)
Diffstat (limited to 'cli/standalone.rs')
-rw-r--r--cli/standalone.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/standalone.rs b/cli/standalone.rs
index 9a6485499..4072e5eb7 100644
--- a/cli/standalone.rs
+++ b/cli/standalone.rs
@@ -238,10 +238,10 @@ pub async fn run(
),
});
let create_web_worker_cb = Arc::new(|_| {
- todo!("Worker are currently not supported in standalone binaries");
+ todo!("Workers are currently not supported in standalone binaries");
});
- let web_worker_preload_module_cb = Arc::new(|_| {
- todo!("Worker are currently not supported in standalone binaries");
+ let web_worker_cb = Arc::new(|_| {
+ todo!("Workers are currently not supported in standalone binaries");
});
// Keep in sync with `main.rs`.
@@ -292,7 +292,8 @@ pub async fn run(
source_map_getter: None,
format_js_error_fn: Some(Arc::new(format_js_error)),
create_web_worker_cb,
- web_worker_preload_module_cb,
+ web_worker_preload_module_cb: web_worker_cb.clone(),
+ web_worker_pre_execute_module_cb: web_worker_cb,
maybe_inspector_server: None,
should_break_on_first_statement: false,
module_loader,