Skip to content

Commit

Permalink
feat: add line back to lcov.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed Mar 20, 2017
1 parent ad02d71 commit 3a38ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/istanbul-lib-instrument/src/source-coverage.js
Expand Up @@ -49,7 +49,7 @@ class SourceCoverage extends classes.FileCoverage {
name: name,
decl: cloneLocation(decl),
loc: cloneLocation(loc),
line: loc.start.line
line: loc.start.line // DEPRECATED: some legacy reports require this info.
};
this.data.f[f] = 0;
this.meta.last.f += 1;
Expand All @@ -63,7 +63,7 @@ class SourceCoverage extends classes.FileCoverage {
loc: cloneLocation(loc),
type: type,
locations: [],
line: loc.start.line
line: loc.start.line // DEPRECATED: some legacy reports require this info.
};
this.meta.last.b += 1;
return b;
Expand Down

0 comments on commit 3a38ff2

Please sign in to comment.