From 26d9b2f3174030138a13bdb60c6c76a38fa0df19 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Sat, 10 Feb 2024 19:08:02 -0700 Subject: chore: deno_core bump (#22379) - Updates to V8 12.1.285.27 https://github.com/denoland/rusty_v8/pull/1383 - Swaps Box for Rc for `source_map_getter` --- cli/module_loader.rs | 4 ++-- cli/standalone/mod.rs | 2 +- cli/worker.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cli') diff --git a/cli/module_loader.rs b/cli/module_loader.rs index 4b120796b..84ced345f 100644 --- a/cli/module_loader.rs +++ b/cli/module_loader.rs @@ -443,8 +443,8 @@ impl ModuleLoaderFactory for CliModuleLoaderFactory { ) } - fn create_source_map_getter(&self) -> Option> { - Some(Box::new(CliSourceMapGetter { + fn create_source_map_getter(&self) -> Option> { + Some(Rc::new(CliSourceMapGetter { shared: self.shared.clone(), })) } diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs index 4049d6709..e25b61c31 100644 --- a/cli/standalone/mod.rs +++ b/cli/standalone/mod.rs @@ -280,7 +280,7 @@ impl ModuleLoaderFactory for StandaloneModuleLoaderFactory { fn create_source_map_getter( &self, - ) -> Option> { + ) -> Option> { None } } diff --git a/cli/worker.rs b/cli/worker.rs index e5a750597..e897c1a86 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -73,7 +73,7 @@ pub trait ModuleLoaderFactory: Send + Sync { dynamic_permissions: PermissionsContainer, ) -> Rc; - fn create_source_map_getter(&self) -> Option>; + fn create_source_map_getter(&self) -> Option>; } // todo(dsherret): this is temporary and we should remove this -- cgit v1.2.3