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