Skip to content

Commit e34d6aa

Browse files
committed
Add aSourceMapURL parameter to SourceMapConsumer.fromSourceMap
A previous patch added the aSourceMapURL parameter to BasicSourceMapConsumer.fromSourceMap; but neglected to add it to the SourceMapConsumer wrapper.
1 parent 83d389f commit e34d6aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/source-map-consumer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function SourceMapConsumer(aSourceMap, aSourceMapURL) {
2222
: new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
2323
}
2424

25-
SourceMapConsumer.fromSourceMap = function(aSourceMap) {
26-
return BasicSourceMapConsumer.fromSourceMap(aSourceMap);
25+
SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
26+
return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
2727
}
2828

2929
/**

0 commit comments

Comments
 (0)