(exp, text, errors)
| 8901 | } |
| 8902 | |
| 8903 | function checkEvent (exp, text, errors) { |
| 8904 | var keywordMatch = exp.replace(stripStringRE, '').match(unaryOperatorsRE); |
| 8905 | if (keywordMatch) { |
| 8906 | errors.push( |
| 8907 | "avoid using JavaScript unary operator as property name: " + |
| 8908 | "\"" + (keywordMatch[0]) + "\" in expression " + (text.trim()) |
| 8909 | ); |
| 8910 | } |
| 8911 | checkExpression(exp, text, errors); |
| 8912 | } |
| 8913 | |
| 8914 | function checkFor (node, text, errors) { |
| 8915 | checkExpression(node.for || '', text, errors); |
no test coverage detected