Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Make sourcemapped location resolve forward instead of back (fixes #1252) #1349

Merged
merged 1 commit into from
Nov 29, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/utils/source-map-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ async function getGeneratedLocation(location: Location, originalSource: Source)
const { line, column } = map.generatedPositionFor({
source: originalSource.url,
line: location.line,
column: location.column == null ? 0 : location.column
column: location.column == null ? 0 : location.column,
bias: SourceMapConsumer.LEAST_UPPER_BOUND
});

return {
Expand Down