"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/jshint.js" between
jshint-2.13.5.tar.gz and jshint-2.13.6.tar.gz

About: JSHint is a static code analysis tool for JavaScript that helps to detect errors and potential problems in programs written in JavaScript.

jshint.js  (jshint-2.13.5):jshint.js  (jshint-2.13.6)
skipping to change at line 4493 skipping to change at line 4493
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. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)