summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index d33cb2c80..5ce75cf71 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -350,7 +350,7 @@ impl MainWorker {
}
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);