Skip to content

Commit

Permalink
fix: guard against missing statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tuckerconnelly authored and bcoe committed Aug 12, 2016
1 parent 5e871f8 commit 76aad99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/file.js
Expand Up @@ -166,6 +166,9 @@ FileCoverage.prototype.getLineCoverage = function () {
lineMap = {};

Object.keys(statements).forEach(function (st) {
if (!statementMap[st]) {
return;
}
var line = statementMap[st].start.line,
count = statements[st],
prevVal = lineMap[line];
Expand Down

0 comments on commit 76aad99

Please sign in to comment.