Skip to content

Commit

Permalink
v2.13.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Nov 11, 2022
1 parent 03b1a06 commit 6d06f8f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,11 @@
<a name="2.13.6"></a>
## [2.13.6](https://github.com/jshint/jshint/compare/2.13.5...v2.13.6) (2022-11-11)

### Bug Fixes

* Allow initializing const bindings to undef ([fedaf6f](https://github.com/jshint/jshint/commit/fedaf6f))
* Correct error message ([03b1a06](https://github.com/jshint/jshint/commit/03b1a06))

<a name="2.13.5"></a>
## [2.13.5](https://github.com/jshint/jshint/compare/2.13.4...v2.13.5) (2022-07-08)

Expand Down
6 changes: 3 additions & 3 deletions dist/jshint-rhino.js
@@ -1,6 +1,6 @@
#!/usr/bin/env rhino
var window = {};
/*! 2.13.5 */
/*! 2.13.6 */
var JSHINT;
if (typeof window === 'undefined') window = {};
(function () {
Expand Down Expand Up @@ -21035,7 +21035,7 @@ var errors = {

// Constants
E011: "'{a}' has already been declared.",
E012: "const '{a}' is initialized to 'undefined'.",
E012: "Missing initializer for constant '{a}'.",
E013: "Attempting to override '{a}' which is a constant.",

// Regular expressions
Expand Down Expand Up @@ -29869,7 +29869,7 @@ var JSHINT = (function() {
var id = state.tokens.prev;
value = expression(context, 10);
if (value) {
if (value.identifier && value.value === "undefined") {
if (!isConst && value.identifier && value.value === "undefined") {
warning("W080", id, id.value);
}
if (!lone) {
Expand Down
6 changes: 3 additions & 3 deletions dist/jshint.js
@@ -1,4 +1,4 @@
/*! 2.13.5 */
/*! 2.13.6 */
var JSHINT;
if (typeof window === 'undefined') window = {};
(function () {
Expand Down Expand Up @@ -21033,7 +21033,7 @@ var errors = {

// Constants
E011: "'{a}' has already been declared.",
E012: "const '{a}' is initialized to 'undefined'.",
E012: "Missing initializer for constant '{a}'.",
E013: "Attempting to override '{a}' which is a constant.",

// Regular expressions
Expand Down Expand Up @@ -29867,7 +29867,7 @@ var JSHINT = (function() {
var id = state.tokens.prev;
value = expression(context, 10);
if (value) {
if (value.identifier && value.value === "undefined") {
if (!isConst && value.identifier && value.value === "undefined") {
warning("W080", id, id.value);
}
if (!lone) {
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.5",
"version": "2.13.6",
"homepage": "http://jshint.com/",
"description": "Static analysis tool for JavaScript",
"author": {
Expand Down

0 comments on commit 6d06f8f

Please sign in to comment.