Skip to content

Commit

Permalink
Use sourceContents when non-null, even if it's an empty string (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshepherdson authored Feb 13, 2024
1 parent 04907d5 commit 6e5dfcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/source-map-consumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ IndexedSourceMapConsumer.prototype.sourceContentFor =
var section = this._sections[i];

var content = section.consumer.sourceContentFor(aSource, true);
if (content) {
if (content || content === '') {
return content;
}
}
Expand Down

0 comments on commit 6e5dfcc

Please sign in to comment.