diff --git a/lib/file.js b/lib/file.js index 0fb55d05..0cfb8a4b 100644 --- a/lib/file.js +++ b/lib/file.js @@ -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];