Skip to content

Conversation

@loewenheim
Copy link
Contributor

The fix turns out to be quite simple: When we look up a position in and index sourcemap, the section's column offset is only applied to its first line. Therefore we need to do the same thing when flattening.

@loewenheim loewenheim requested a review from Swatinem October 9, 2023 14:07
@loewenheim loewenheim linked an issue Oct 9, 2023 that may be closed by this pull request
@loewenheim loewenheim merged commit c3ab912 into master Oct 10, 2023
@loewenheim loewenheim deleted the fix/flatten branch October 10, 2023 08:46
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.

Bug in SourceMapIndex::flatten

3 participants