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