Skip to content

fix: forward sourceMapUrl in BasicSourceMapConsumer.fromSourceMap - #549

Open
user-Param wants to merge 1 commit into
mozilla:masterfrom
user-Param:fix/fromSourceMap-forward-url
Open

user-Param wants to merge 1 commit into
mozilla:masterfrom
user-Param:fix/fromSourceMap-forward-url

Conversation

@user-Param

Copy link
Copy Markdown

Fixes #544. BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL) called new BasicSourceMapConsumer(aSourceMap.toString()) without forwarding aSourceMapURL, so sources were never resolved against the URL. Now forwards the URL to the constructor, matching the documented behavior and the constructor's own handling.

@user-Param

Copy link
Copy Markdown
Author

This PR fixes a real bug. All 190 tests pass. Would appreciate a review!

@user-Param

Copy link
Copy Markdown
Author

All 190 tests pass. The fix is minimal and focused. Would appreciate a review!

@user-Param

Copy link
Copy Markdown
Author

@hbenl Could you please review this PR? All 190 tests pass and the fix addresses a real issue. Thank you!

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.

SourceMapConsumer.fromSourceMap ignores its sourceMapUrl argument

2 participants