We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf25b38 commit 5b6616dCopy full SHA for 5b6616d
lib/source-map-consumer.js
@@ -144,8 +144,11 @@ SourceMapConsumer.prototype.eachMapping =
144
145
var sourceRoot = this.sourceRoot;
146
mappings.map(function (mapping) {
147
- var source = mapping.source === null ? null : this._sources.at(mapping.source);
148
- source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
+ var source = null;
+ if(mapping.source !== null) {
149
+ source = this._sources.at(mapping.source);
150
+ source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
151
+ }
152
return {
153
source: source,
154
generatedLine: mapping.generatedLine,
0 commit comments