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 |