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 21, 2017
1 parent bd41eb9 commit e31d2cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/istanbul-lib-instrument/src/source-coverage.js
Expand Up @@ -49,7 +49,8 @@ class SourceCoverage extends classes.FileCoverage {
name: name,
decl: cloneLocation(decl),
loc: cloneLocation(loc),
line: loc.start.line // DEPRECATED: some legacy reports require this info.
// DEPRECATED: some legacy reports require this info.
line: loc.start.line
};
this.data.f[f] = 0;
this.meta.last.f += 1;
Expand All @@ -63,7 +64,8 @@ class SourceCoverage extends classes.FileCoverage {
loc: cloneLocation(loc),
type: type,
locations: [],
line: loc.start.line // DEPRECATED: some legacy reports require this info.
// DEPRECATED: some legacy reports require this info.
line: loc.start.line
};
this.meta.last.b += 1;
return b;
Expand Down

0 comments on commit e31d2cb

Please sign in to comment.