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

jshint / jshint / 2490
100%

Build:
DEFAULT BRANCH: master
Ran 07 Aug 2016 12:34AM UTC
Jobs 4
Files 13
Run time 47s
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
2490

push

travis-ci

rwaldron
[[FIX]] Avoid crash when peeking past end of prog (#2937)

The lexer returns `null` values when tokens are requested after all
input has been consumed. Previously, the `peek` function would correctly
produce the special "(end)" token in situations where the parser
attempted to look beyond the end of the program. In such cases, however,
it would also pollute the lookahead buffer with an invalid entry--the
`null` value returned by the lexer. Future calls to `peek` could receive
this buffered value.

Because JSHint's internals are written with the assumption that `peek`
always returns a token object, the `null` value would trigger a
TypeError and subsequent program crash.

Re-factor the `peek` function to only insert valid token objects into
the lookahead buffer.

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

3946 of 4039 relevant lines covered (97.7%)

12914.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2490.1 07 Aug 2016 12:34AM UTC 0
97.67
Travis Job 2490.1
2 2490.2 07 Aug 2016 12:35AM UTC 0
97.62
Travis Job 2490.2
3 2490.3 07 Aug 2016 12:34AM UTC 0
97.62
Travis Job 2490.3
4 2490.4 07 Aug 2016 12:35AM UTC 0
97.62
Travis Job 2490.4
Source Files on build 2490
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2490
  • 330d429a on github
  • Prev Build on master (#2485)
  • Next Build on master (#2491)
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