diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c94e80..5433824 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog This file contains highlights of what changes on each version of the [LCOV Reports for JS](https://github.com/cedx/lcov.js) library. +## Version 0.2.1 +- Fixed a bug in `Report.parse()` method. + ## Version 0.2.0 - Breaking change: changed the signature of most constructors. - Empty test names are not included in the report output. diff --git a/package.json b/package.json index b41e597..8ae6ee7 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "bugs": "https://github.com/cedx/lcov.js/issues", "license": "Apache-2.0", "repository": "cedx/lcov.js", - "version": "0.2.0", + "version": "0.2.1", "jsnext:main": "./src/index", "main": "./lib/index", diff --git a/src/report.js b/src/report.js index 1e14bb7..85601fe 100644 --- a/src/report.js +++ b/src/report.js @@ -116,7 +116,7 @@ export class Report { break; case Token.LINE_DATA: - if (data.length < 3) throw new Error('Invalid line data.'); + if (data.length < 2) throw new Error('Invalid line data.'); record.lines.data.push(new LineData( parseInt(data[0], 10), parseInt(data[1], 10),