Skip to content

Conversation

loewenheim
Copy link
Contributor

@loewenheim loewenheim commented Aug 8, 2025

Previously, when looking up a line and column, we would always return the token at or immediately before that position, even if it belonged to an earlier minified line. This is

  1. wrong—tokens are only meant to extend to the end of a line.
  2. inconsistent—this means that an unmapped line before any mapped line
    would return no mapping, but an unmapped line after a mapped line
    would.

This is the `sourcemapcache` equivalent of
getsentry/rust-sourcemap#131 (but does not
depend on it).

Previously, when looking up a line and column, we would always return
the token at or immediately before that position, even if it belonged to
an earlier minified line. This is

1. wrong—tokens are only meant to extend to the end of a line.
2. inconsistent—this means that an unmapped line before any mapped line
   would return no mapping, but an unmapped line after a mapped line
   would.
@loewenheim loewenheim force-pushed the sebastian/sourcemapcache-lookup-lines branch from 3511d14 to 11b97ea Compare August 8, 2025 15:19
@loewenheim loewenheim requested a review from a team August 8, 2025 15:20
@loewenheim loewenheim merged commit 713eee2 into master Aug 11, 2025
16 checks passed
@loewenheim loewenheim deleted the sebastian/sourcemapcache-lookup-lines branch August 11, 2025 10:51
loewenheim added a commit to getsentry/symbolicator that referenced this pull request Aug 12, 2025
This updates `symbolic` to 12.16.2 to get access to
getsentry/symbolic#932. This doesn't require
a cache version bump because only the lookup function changed, all cache
contents stay the same.
loewenheim added a commit to getsentry/symbolicator that referenced this pull request Aug 13, 2025
This updates `symbolic` to 12.16.2 to get access to
getsentry/symbolic#932. This doesn't require a
cache version bump because only the lookup function changed, all cache
contents stay the same.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants