jshint.js (jshint-2.13.5) | : | jshint.js (jshint-2.13.6) | ||
---|---|---|---|---|
/*! 2.13.5 */ | /*! 2.13.6 */ | |||
var JSHINT; | var JSHINT; | |||
if (typeof window === 'undefined') window = {}; | if (typeof window === 'undefined') window = {}; | |||
(function () { | (function () { | |||
var require; | var require; | |||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof requ ire=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new E rror("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]= {exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e) },l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&req uire;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,e xports){ | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof requ ire=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new E rror("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]= {exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e) },l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&req uire;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,e xports){ | |||
var identifierStartTable = []; | var identifierStartTable = []; | |||
for (var i = 0; i < 128; i++) { | for (var i = 0; i < 128; i++) { | |||
identifierStartTable[i] = | identifierStartTable[i] = | |||
i === 36 || // $ | i === 36 || // $ | |||
skipping to change at line 21017 | skipping to change at line 21017 | |||
E006: "Unexpected early end of program.", | E006: "Unexpected early end of program.", | |||
// Strict mode | // Strict mode | |||
E007: "Missing \"use strict\" statement.", | E007: "Missing \"use strict\" statement.", | |||
E008: "Strict violation.", | E008: "Strict violation.", | |||
E009: "Option 'validthis' can't be used in a global scope.", | E009: "Option 'validthis' can't be used in a global scope.", | |||
E010: "'with' is not allowed in strict mode.", | E010: "'with' is not allowed in strict mode.", | |||
// Constants | // Constants | |||
E011: "'{a}' has already been declared.", | 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.", | E013: "Attempting to override '{a}' which is a constant.", | |||
// Regular expressions | // Regular expressions | |||
E014: "A regular expression literal can be confused with '/='.", | E014: "A regular expression literal can be confused with '/='.", | |||
E015: "Unclosed regular expression.", | E015: "Unclosed regular expression.", | |||
E016: "Invalid regular expression.", | E016: "Invalid regular expression.", | |||
// Tokens | // Tokens | |||
E017: "Unclosed comment.", | E017: "Unclosed comment.", | |||
E018: "Unbegun comment.", | E018: "Unbegun comment.", | |||
skipping to change at line 29840 | skipping to change at line 29840 | |||
if (state.tokens.next.id === "=") { | if (state.tokens.next.id === "=") { | |||
statement.hasInitializer = true; | statement.hasInitializer = true; | |||
advance("="); | advance("="); | |||
if (!noin && peek(0).id === "=" && state.tokens.next.identifier) { | if (!noin && peek(0).id === "=" && state.tokens.next.identifier) { | |||
warning("W120", state.tokens.next, state.tokens.next.value); | warning("W120", state.tokens.next, state.tokens.next.value); | |||
} | } | |||
var id = state.tokens.prev; | var id = state.tokens.prev; | |||
value = expression(context, 10); | value = expression(context, 10); | |||
if (value) { | if (value) { | |||
if (value.identifier && value.value === "undefined") { | if (!isConst && value.identifier && value.value === "undefined") { | |||
warning("W080", id, id.value); | warning("W080", id, id.value); | |||
} | } | |||
if (!lone) { | if (!lone) { | |||
destructuringPatternMatch(names, value); | destructuringPatternMatch(names, value); | |||
} | } | |||
} | } | |||
} | } | |||
// Bindings are not immediately initialized in for-in and for-of | // Bindings are not immediately initialized in for-in and for-of | |||
// statements. As with `const` initializers (described above), the `for` | // statements. As with `const` initializers (described above), the `for` | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |