diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-10-23 11:50:15 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-23 11:50:15 +1100 |
commit | 7e2c7fb6c5454e30158d74e1a5786183ea391f07 (patch) | |
tree | 42402aa26a0422b9c46d1d441598dbe803b8ed15 /cli/fmt_errors.rs | |
parent | 9fa59f0ca8164f5e02ba2a2fa90b6fdbce5c1afb (diff) |
refactor(cli): migrate run and cache to new infrastructure (#7996)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/fmt_errors.rs')
-rw-r--r-- | cli/fmt_errors.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/fmt_errors.rs b/cli/fmt_errors.rs index 333c47756..890f9b83f 100644 --- a/cli/fmt_errors.rs +++ b/cli/fmt_errors.rs @@ -7,6 +7,7 @@ use deno_core::error::{AnyError, JsError as CoreJsError, JsStackFrame}; use std::error::Error; use std::fmt; use std::ops::Deref; +use std::sync::Arc; const SOURCE_ABBREV_THRESHOLD: usize = 150; @@ -237,7 +238,7 @@ pub struct JsError(CoreJsError); impl JsError { pub fn create( core_js_error: CoreJsError, - source_map_getter: &impl SourceMapGetter, + source_map_getter: Arc<impl SourceMapGetter>, ) -> AnyError { let core_js_error = apply_source_map(&core_js_error, source_map_getter); let js_error = Self(core_js_error); |