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

jshint / jshint / 2830
100%

Build:
DEFAULT BRANCH: master
Ran 24 Jul 2018 04:14PM UTC
Jobs 4
Files 14
Run time 25min
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
2830

push

travis-ci

rwaldron
[[FIX]] Correct restriction on function name

The ECMAScript specification details the following early error for
function-defining productions:

> - If the source code matching this production is strict mode code, it
>   is a Syntax Error if BindingIdentifier is present and the
>   StringValue of BindingIdentifier is "eval" or "arguments".

There were two bugs in the original implementation of this error:

- violations from function expressions with empty bodies would not be
  detected
- violations from function declarations contained within strict mode
  code would be reported twice

Correct the first issue by ensuring that the "(isStrict)" property is
accurately set for functions with empty bodies. Correct the second issue
by re-locating the error detection logic to within the processing logic
for expressions and declarations and inserting an additional condition
within the latter.

(This correction does not require modification to the Test262 whitelist
file, although that test suite does offer coverage for this behavior. At
the revision in use by JSHint, the relevant tests are expressed using
`eval` and therefore unusable by parsers. Those tests have since been
reformatted to correct this; they will be incorporated when JSHint next
updates its reference to Test262.)

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

4044 of 4095 relevant lines covered (98.75%)

14350.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2830.1 24 Jul 2018 04:15PM UTC 0
98.73
Travis Job 2830.1
2 2830.2 24 Jul 2018 04:16PM UTC 0
98.75
Travis Job 2830.2
3 2830.3 24 Jul 2018 04:14PM UTC 0
98.75
Travis Job 2830.3
4 2830.4 24 Jul 2018 04:19PM UTC 0
98.75
Travis Job 2830.4
Source Files on build 2830
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2830
  • 55aa54ef on github
  • Prev Build on master (#2831)
  • Next Build on master (#2832)
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