()
| 3145 | // 12.14 The try statement |
| 3146 | |
| 3147 | function parseCatchClause() { |
| 3148 | var param, body, startToken; |
| 3149 | |
| 3150 | startToken = lookahead; |
| 3151 | expectKeyword('catch'); |
| 3152 | |
| 3153 | expect('('); |
| 3154 | if (match(')')) { |
| 3155 | throwUnexpected(lookahead); |
| 3156 | } |
| 3157 | |
| 3158 | param = parseVariableIdentifier(); |
| 3159 | // 12.14.1 |
| 3160 | if (strict && isRestrictedWord(param.name)) { |
| 3161 | throwErrorTolerant({}, Messages.StrictCatchVariable); |
| 3162 | } |
| 3163 | |
| 3164 | expect(')'); |
| 3165 | body = parseBlock(); |
| 3166 | return delegate.markEnd(delegate.createCatchClause(param, body), startToken); |
| 3167 | } |
| 3168 | |
| 3169 | function parseTryStatement() { |
| 3170 | var block, handlers = [], finalizer = null; |
no test coverage detected