()
| 7842 | // 12.14 The try statement |
| 7843 | |
| 7844 | function parseCatchClause() { |
| 7845 | var param, body, marker = markerCreate(); |
| 7846 | |
| 7847 | expectKeyword('catch'); |
| 7848 | |
| 7849 | expect('('); |
| 7850 | if (match(')')) { |
| 7851 | throwUnexpected(lookahead); |
| 7852 | } |
| 7853 | |
| 7854 | param = parseExpression(); |
| 7855 | // 12.14.1 |
| 7856 | if (strict && param.type === Syntax.Identifier && isRestrictedWord(param.name)) { |
| 7857 | throwErrorTolerant({}, Messages.StrictCatchVariable); |
| 7858 | } |
| 7859 | |
| 7860 | expect(')'); |
| 7861 | body = parseBlock(); |
| 7862 | return markerApply(marker, delegate.createCatchClause(param, body)); |
| 7863 | } |
| 7864 | |
| 7865 | function parseTryStatement() { |
| 7866 | var block, handlers = [], finalizer = null, marker = markerCreate(); |
no test coverage detected