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

istanbuljs / v8-to-istanbul / 421 / 1
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2020 10:24PM UTC
Files 6
Run time 1s
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

27 Mar 2020 09:54PM UTC coverage: 95.298%. Remained the same
421.1

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 %.

513 of 532 relevant lines covered (96.43%)

50.98 hits per line

Source Files on job 421.1
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 315
  • Travis Job 421.1
  • c5731a3b on github
  • Prev Job for on master (#418.1)
  • Next Job for on master (#424.1)
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

© 2026 Coveralls, Inc