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

jshint / jshint / 1819
100%

Build:
DEFAULT BRANCH: master
Ran 11 May 2015 02:03PM UTC
Jobs 2
Files 12
Run time 21min
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
1819

push

travis-ci

jugglinmike
[[FIX]] Allow lexer to communicate completion

Currently, JSHint's lexer continuously emits new "end-of-file" token
once all input has been consumed. This behavior makes the internal
`advance` function dangerous to use within iteration contexts. Such
usages need to explicitly check for the "end-of-file" token in order to
avoid entering non-terminating states.

Some of JSHint's parsing logic (such as that for template literal
parsing) takes this detail into account. Other areas (i.e. parsing class
bodies and function parameter lists) does not. While it would be
possible to extend each use with explicit safety checks, the possibility
for error in future feature additions would remain.

Update the lexer to consistently emit `null` after producing the
"end-of-file" token, alleviating the requirement of explicit safety
checks in `advance`-calling code. Update existing unit tests with the
new parsing error information (which is more accurate in many cases).

11 of 11 new or added lines in 2 files covered. (100.0%)

3678 of 3809 relevant lines covered (96.56%)

5398.93 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/jshint.js
Jobs
ID Job ID Ran Files Coverage
1 1819.1 11 May 2015 02:24PM UTC 0
96.56
Travis Job 1819.1
2 1819.2 11 May 2015 02:03PM UTC 0
96.56
Travis Job 1819.2
Source Files on build 1819
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1819
  • a093f784 on github
  • Prev Build on master (#1813)
  • Next Build on master (#1827)
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