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

jshint / jshint / 2437
100%

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

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

3944 of 4039 relevant lines covered (97.65%)

6412.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2437.1 03 Apr 2016 02:11AM UTC 0
97.62
Travis Job 2437.1
2 2437.2 03 Apr 2016 02:11AM UTC 0
97.57
Travis Job 2437.2
Source Files on build 2437
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2437
  • c3b4d63c on github
  • Prev Build on master (#2436)
  • Next Build on master (#2438)
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