Skip to content

Commit c898668

Browse files
authored
Merge pull request mozilla#280 from tromey/issue-227
Issue mozilla#227
2 parents 745accc + f6df209 commit c898668

11 files changed

+70
-8
lines changed

dist/source-map.debug.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/source-map.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,10 @@ return /******/ (function(modules) { // webpackBootstrap
16711671
throw new Error('Unsupported version: ' + version);
16721672
}
16731673

1674+
if (sourceRoot) {
1675+
sourceRoot = util.normalize(sourceRoot);
1676+
}
1677+
16741678
sources = sources
16751679
.map(String)
16761680
// Some source maps produce relative source paths like "./foo.js" instead of

dist/source-map.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/source-map.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/test/test_api.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/test/test_dog_fooding.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/test/test_source_map_consumer.js

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/test/test_source_map_generator.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/test/test_source_node.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/source-map-consumer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ function BasicSourceMapConsumer(aSourceMap) {
308308
throw new Error('Unsupported version: ' + version);
309309
}
310310

311+
if (sourceRoot) {
312+
sourceRoot = util.normalize(sourceRoot);
313+
}
314+
311315
sources = sources
312316
.map(String)
313317
// Some source maps produce relative source paths like "./foo.js" instead of

0 commit comments

Comments
 (0)