diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-07-29 19:11:08 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-07-29 09:11:08 +0000 |
commit | 5083f5fd908057cbc8649b79c13ab78a7f7ebf34 (patch) | |
tree | d0336672fd7760593695b2e0d351c401ed1d8c02 /cli/source_maps.rs | |
parent | ff96e3dc637974c6f9853f3bf9565bfd63f22b17 (diff) |
Remap stack traces of unthrown errors. (#2693)
Diffstat (limited to 'cli/source_maps.rs')
-rw-r--r-- | cli/source_maps.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/source_maps.rs b/cli/source_maps.rs index 6b453d883..a886c6afc 100644 --- a/cli/source_maps.rs +++ b/cli/source_maps.rs @@ -17,9 +17,9 @@ pub trait SourceMapGetter { /// Cached filename lookups. The key can be None if a previous lookup failed to /// find a SourceMap. -type CachedMaps = HashMap<String, Option<SourceMap>>; +pub type CachedMaps = HashMap<String, Option<SourceMap>>; -struct SourceMap { +pub struct SourceMap { mappings: Mappings, sources: Vec<String>, } @@ -202,7 +202,7 @@ fn get_maybe_orig_position<G: SourceMapGetter>( } } -fn get_orig_position<G: SourceMapGetter>( +pub fn get_orig_position<G: SourceMapGetter>( script_name: String, line: i64, column: i64, |