getsentry / rust-sourcemap

A library for rust that implements basic sourcemap handling
Other
224 stars 27 forks source link

fix: Correctly flatten index sourcemaps #74

Closed loewenheim closed 1 year ago

loewenheim commented 1 year ago

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.