fix typo in noworker detection

This commit is contained in:
nightwing 2013-07-09 18:22:18 +04:00
commit 49967c139a
3 changed files with 12 additions and 3 deletions

View file

@ -5308,7 +5308,7 @@ var JSHINT = (function () {
nobreaknonadjacent(state.tokens.prev, state.tokens.curr);
nonadjacent(state.tokens.curr, state.tokens.next);
}
if (s === "in" && left.id === "!") {
if (s === "in" && left && left.id === "!") {
warning("W018", left, "!");
}
if (typeof f === "function") {
@ -7892,4 +7892,4 @@ req("/src/stable/jshint.js");
function req() {return require.apply(this, arguments)}
module.exports = req("/src/stable/jshint.js");
});
});