Skip to content

Commit

Permalink
Merge db7567b into 374767f
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Feb 9, 2020
2 parents 374767f + db7567b commit 9526ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v8-to-istanbul.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = class V8ToIstanbul {
// so use this inline one instead of trying to read the file off disk
// Not sure what it means to have an array of more than 1 here so just ignore it
// since we wouldn't know how to handle it
if (this.sources.sourceMap && this.sources.sourceMap.sourcemap.sourcesContent.length === 1) {
if (this.sources.sourceMap && this.sources.sourceMap.sourcemap && this.sources.sourceMap.sourcemap.sourcesContent && this.sources.sourceMap.sourcemap.sourcesContent.length === 1) {
originalRawSource = this.sources.sourceMap.sourcemap.sourcesContent[0]
} else if (this.sources.originalSource) {
originalRawSource = this.sources.originalSource
Expand Down

0 comments on commit 9526ae9

Please sign in to comment.