diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-08-16 21:00:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 21:00:35 -0400 |
commit | 868c7e38bfc9a09b5cfeae30ea5a2345a6d700d7 (patch) | |
tree | 555d1b5cb080aaddfdb8b70c0779086d243a984c /runtime/examples | |
parent | 0b70c81f97a730fda353b6d06e589c3a2a558676 (diff) |
feat(runtime): add pre_execute_module_cb (#15485)
Diffstat (limited to 'runtime/examples')
-rw-r--r-- | runtime/examples/hello_runtime.rs | 5 |
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, |