From a4e0f3ff8851771e91c14fd398d5956d9ae73bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 23 Jul 2023 15:42:41 +0200 Subject: chore: update deno_core to 0.196.0 (#19897) Co-authored-by: Matt Mastracci --- runtime/build.rs | 1 + runtime/web_worker.rs | 2 +- runtime/worker.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/build.rs b/runtime/build.rs index dd222a8a0..6fde45377 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -350,6 +350,7 @@ mod startup_snapshot { extensions, compression_cb: None, snapshot_module_load_cb: Some(Box::new(transpile_ts_for_snapshotting)), + with_runtime_cb: None, }); for path in output.files_loaded_during_snapshot { println!("cargo:rerun-if-changed={}", path.display()); 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); 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); -- cgit v1.2.3