(exp, text, errors)
| 8919 | } |
| 8920 | |
| 8921 | function checkExpression (exp, text, errors) { |
| 8922 | try { |
| 8923 | new Function(("return " + exp)); |
| 8924 | } catch (e) { |
| 8925 | var keywordMatch = exp.replace(stripStringRE, '').match(prohibitedKeywordRE); |
| 8926 | if (keywordMatch) { |
| 8927 | errors.push( |
| 8928 | "avoid using JavaScript keyword as property name: " + |
| 8929 | "\"" + (keywordMatch[0]) + "\" in expression " + (text.trim()) |
| 8930 | ); |
| 8931 | } else { |
| 8932 | errors.push(("invalid expression: " + (text.trim()))); |
| 8933 | } |
| 8934 | } |
| 8935 | } |
| 8936 | |
| 8937 | /* */ |
| 8938 |
no outgoing calls
no test coverage detected