• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

istanbuljs / v8-to-istanbul / 421
97%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2020 10:24PM UTC
Jobs 1
Files 6
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
421

push

travis-ci

web-flow
fix: v8 coverage ranges that fall on \n characters cause exceptions (#96)

When a file has dos line endings \r\n we found a few instances in a large codebase
where v8 would report the position of the \n as startCol for a range. This would
cause the starting column supplied to sourceMap.originalPositionFor to be a -1
because the startColumns of the transpiled source lines were calculated as
endCol + length of line break sequence.

To replicate this condition, revert the fix but run the new unit test. The
call to `applyCoverage` will crash. While the unit test range was hand
crafted by me for this particular example, we saw this coming up in the
wild.

This change clamps the supplied value to
max 0 and adds a test fixture (force encoded as \r\n) to test for it.

Co-authored-by: Joe Mordetsky <jmordetsky@bloomberg.net>

95 of 106 branches covered (89.62%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

513 of 532 relevant lines covered (96.43%)

50.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 421.1 27 Mar 2020 10:24PM UTC 0
95.3
Travis Job 421.1
Source Files on build 421
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #421
  • c5731a3b on github
  • Prev Build on master (#418)
  • Next Build on master (#424)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc