diff options
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r-- | cli/module_loader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Box<dyn SourceMapGetter>> { - Some(Box::new(CliSourceMapGetter { + fn create_source_map_getter(&self) -> Option<Rc<dyn SourceMapGetter>> { + Some(Rc::new(CliSourceMapGetter { shared: self.shared.clone(), })) } |