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

jshint / jshint / 2451
100%

Build:
DEFAULT BRANCH: master
Ran 18 May 2016 07:41PM UTC
Jobs 2
Files 13
Run time 2s
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
2451

Pull #2927

travis-ci

ehjay
[[FEAT]] Error for literals on rhs of `instanceof`

This patch adds a new parse error that is used when a literal or function
declaration is found on the right-hand side of the `instanceof` infix operator.
Specifically, it checks for number, string, object, array and regular expression
literals, as well as the null and undefined keywords and function declarations.

The following generate errors:

    x instanceof 0;
    x instanceof '';
    x instanceof null;
    x instanceof undefined;
    x instanceof {};
    x instanceof [];
    x instanceof /./;
    x instanceof function() {};
    x instanceof function MyUnusableFunction() {};

But this is okay:

    /x/ instanceof /x/.constructor;

as per GH-2773

References:

    Closes GH-2777
Pull Request #2927: [[FEAT]] Error for literals on rhs of `instanceof`

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

3954 of 4049 relevant lines covered (97.65%)

6471.12 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.94
0.01% src/jshint.js

Uncovered Existing Lines

Lines Coverage ∆ File
58
96.94
0.01% src/jshint.js
Jobs
ID Job ID Ran Files Coverage
1 2451.1 18 May 2016 07:41PM UTC 13
97.63
Travis Job 2451.1
2 2451.2 18 May 2016 07:40PM UTC 13
97.58
Travis Job 2451.2
Source Files on build 2451
  • List 13
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #2451
  • Pull Request #2927
  • PR Base - master (#2449)
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

© 2025 Coveralls, Inc