summaryrefslogtreecommitdiff
path: root/runtime/examples
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/examples')
-rw-r--r--runtime/examples/hello_runtime.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs
index 07e42f0ff..2853c1120 100644
--- a/runtime/examples/hello_runtime.rs
+++ b/runtime/examples/hello_runtime.rs
@@ -22,7 +22,7 @@ async fn main() -> Result<(), AnyError> {
let create_web_worker_cb = Arc::new(|_| {
todo!("Web workers are not supported in the example");
});
- let web_worker_preload_module_cb = Arc::new(|_| {
+ let web_worker_event_cb = Arc::new(|_| {
todo!("Web workers are not supported in the example");
});
@@ -46,7 +46,8 @@ async fn main() -> Result<(), AnyError> {
seed: None,
source_map_getter: None,
format_js_error_fn: None,
- web_worker_preload_module_cb,
+ web_worker_preload_module_cb: web_worker_event_cb.clone(),
+ web_worker_pre_execute_module_cb: web_worker_event_cb,
create_web_worker_cb,
maybe_inspector_server: None,
should_break_on_first_statement: false,