summaryrefslogtreecommitdiff
path: root/runtime/examples/hello_runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/examples/hello_runtime.rs')
-rw-r--r--runtime/examples/hello_runtime.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs
index 74a9ef398..e74920c34 100644
--- a/runtime/examples/hello_runtime.rs
+++ b/runtime/examples/hello_runtime.rs
@@ -22,6 +22,9 @@ 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(|_| {
+ todo!("Web workers are not supported in the example");
+ });
let options = WorkerOptions {
bootstrap: BootstrapOptions {
@@ -42,6 +45,7 @@ async fn main() -> Result<(), AnyError> {
user_agent: "hello_runtime".to_string(),
seed: None,
js_error_create_fn: None,
+ web_worker_preload_module_cb,
create_web_worker_cb,
maybe_inspector_server: None,
should_break_on_first_statement: false,