diff options
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r-- | runtime/web_worker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index 956181326..af1ae19e0 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -528,7 +528,7 @@ impl WebWorker { }; let bootstrap_fn_global = { - let context = js_runtime.global_context(); + let context = js_runtime.main_context(); let scope = &mut js_runtime.handle_scope(); let context_local = v8::Local::new(scope, context); let global_obj = context_local.global(scope); |