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

jshint / jshint / 2459
100%

Build:
DEFAULT BRANCH: master
Ran 11 Jun 2016 08:37PM UTC
Jobs 2
Files 13
Run time 16s
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
2459

push

travis-ci

Mike Pennisi
[[FEAT]] Error for literals on rhs of `instanceof`

This patch adds a new error that is used when a literal is found on the
right-hand side of the `instanceof` infix operator. A warning is used when a
function declaration is found.

Literals generate errors:

    x instanceof 0;
    x instanceof '';
    x instanceof null;
    x instanceof undefined;
    x instanceof {};
    x instanceof [];
    x instanceof /./;
    x instanceof ``;

Function declarations generate warnings:

    x instanceof function() {};
    x instanceof function MyUnusableFunction() {};

But this is okay:

    x instanceof /x/.constructor;
    x instanceof "".constructor;

as per GH-2773

References:

    Closes GH-2777

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

3957 of 4052 relevant lines covered (97.66%)

6426.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2459.1 11 Jun 2016 08:37PM UTC 0
97.63
Travis Job 2459.1
2 2459.2 11 Jun 2016 08:37PM UTC 0
97.58
Travis Job 2459.2
Source Files on build 2459
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2459
  • e3e745be on github
  • Prev Build on master (#2449)
  • Next Build on master (#2473)
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