Skip to content

Commit

Permalink
Merge branch 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Jul 14, 2023
2 parents 1c8083a + 760f7c4 commit 89a4053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symbolic-cabi/src/sourcemap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ ffi_fn! {
// and the upstream python code does a `- 1` here:
// https://github.com/getsentry/sentry/blob/fdabccac7576c80674c2fed556d4c5407657dc4c/src/sentry/lang/javascript/processor.py#L584-L586
smh.lookup_token(line, col + 1).map(|token| {
let mut rv = make_token_match(token);
let rv = make_token_match(token);
if let Some(name) = smh.get_original_function_name(col + 1).map(str::to_owned) {
(*rv).function_name = SymbolicStr::from_string(name);
}
rv
})
}
_ => source_map.inner.lookup_token(line, col).map(|token| {
let mut rv = make_token_match(token);
let rv = make_token_match(token);
if let Some(name) = source_view
.get_original_function_name(token, (*minified_name).as_str())
.map(str::to_owned) {
Expand Down

0 comments on commit 89a4053

Please sign in to comment.