Skip to content

Conversation

rbuckton
Copy link
Contributor

We had a discrepancy in our source map encoding and decoding logic, where we encoded source maps using 1-based line/column offsets, but decoded source maps using 0-based line/column offsets. This off-by-one error became apparent when we switched away from index maps into a merged source map for project reference builds. This PR switches all source map encoding and decoding to 0-based line/column offsets to align both and simplify the math involved.

@rbuckton rbuckton merged commit b979413 into master Jun 15, 2018
@rbuckton rbuckton deleted the sourceMapBase branch June 15, 2018 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants