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

Conversation

jlongster
Copy link
Contributor

The problem with sourcemapped breakpoints was that it was searching backwards to find the nearest generated location, which means if there is no mapping for column 0 is would move to the previous line. It's important that we resolve forwards, so it will find the first mapping on the same line (which is a common occurrence, to only map the first piece of code on the line that's indented).

Copy link
Contributor

@jasonLaster jasonLaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

thanks for the writeup

@jasonLaster jasonLaster merged commit 3fb75cf into firefox-devtools:master Nov 29, 2016
@clarkbw
Copy link
Contributor

clarkbw commented Nov 30, 2016

I've been trying to test this change against http://wbamberg.github.io/example-websites/source-mapping/index.html but I'm not seeing the source mapped files anymore. I'll look more into it and file another issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants