Skip to content

Commit

Permalink
v2.13.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Jul 8, 2022
1 parent d9583d5 commit 95a6036
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,10 @@
<a name="2.13.5"></a>
## [2.13.5](https://github.com/jshint/jshint/compare/2.13.4...v2.13.5) (2022-07-08)

### Bug Fixes

* Tolerate late definition of async function (#3618) ([5c256a2](https://github.com/jshint/jshint/commit/5c256a2))

<a name="2.13.4"></a>
## [2.13.4](https://github.com/jshint/jshint/compare/2.13.3...v2.13.4) (2022-01-24)

Expand Down
15 changes: 13 additions & 2 deletions dist/jshint-rhino.js
@@ -1,6 +1,6 @@
#!/usr/bin/env rhino
var window = {};
/*! 2.13.4 */
/*! 2.13.5 */
var JSHINT;
if (typeof window === 'undefined') window = {};
(function () {
Expand Down Expand Up @@ -27220,8 +27220,9 @@ var JSHINT = (function() {
if (t.reach) {
return;
}

if (t.id !== "(endline)") {
if (t.id === "function") {
if (isFunction(t, i)) {
if (state.option.latedef === true) {
warning("W026", t);
}
Expand All @@ -27232,6 +27233,16 @@ var JSHINT = (function() {
break;
}
}

function isFunction(t, i) {
if (t.id === "function") {
return true;
}
if (t.id === "async") {
t = peek(i);
return t.id === "function";
}
}
}

/**
Expand Down
15 changes: 13 additions & 2 deletions dist/jshint.js
@@ -1,4 +1,4 @@
/*! 2.13.4 */
/*! 2.13.5 */
var JSHINT;
if (typeof window === 'undefined') window = {};
(function () {
Expand Down Expand Up @@ -27218,8 +27218,9 @@ var JSHINT = (function() {
if (t.reach) {
return;
}

if (t.id !== "(endline)") {
if (t.id === "function") {
if (isFunction(t, i)) {
if (state.option.latedef === true) {
warning("W026", t);
}
Expand All @@ -27230,6 +27231,16 @@ var JSHINT = (function() {
break;
}
}

function isFunction(t, i) {
if (t.id === "function") {
return true;
}
if (t.id === "async") {
t = peek(i);
return t.id === "function";
}
}
}

/**
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jshint",
"version": "2.13.4",
"version": "2.13.5",
"homepage": "http://jshint.com/",
"description": "Static analysis tool for JavaScript",
"author": {
Expand Down

0 comments on commit 95a6036

Please sign in to comment.