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

jshint / jshint / 2437 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2016 02:11AM UTC
Files 13
Run time 0s
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

03 Apr 2016 02:09AM UTC coverage: 97.574% (+0.05%) from 97.524%
2437.2

push

travis-ci

rwaldron
[[FIX]] Account for implied closures

Some environments wrap code in an immediately-invoked function

expression prior to evaluation. This behavior has an effect on global

`var` declarations. Unlike in typical JavaScript source code, such

statements in these contexts do *not* create new entries in the

environment record, nor do they resolve to references to the global

binding (where defined).



Update the logic that tracks global definitions to account for such

environments, avoiding issuing warning W079 ("Redefinition of '{a}'.")

which is otherwise appropriate.



Note: a far preferable solution would involve updating JSHint's scope

tracking mechanism to create a new entry for this implicit function

scope. Unfortunately the legacy implementation of the environmental

options allowed for usage scenarios that are incompatible with that

approach (specifically: enabling the environment options after the

source text has been partially parsed).

3941 of 4039 relevant lines covered (97.57%)

3206.41 hits per line

Source Files on job 2437.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2437
  • Travis Job 2437.2
  • c3b4d63c on github
  • Prev Job for on master (#2436.2)
  • Next Job for on master (#2438.2)
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