()
| 7863 | } |
| 7864 | |
| 7865 | function parseTryStatement() { |
| 7866 | var block, handlers = [], finalizer = null, marker = markerCreate(); |
| 7867 | |
| 7868 | expectKeyword('try'); |
| 7869 | |
| 7870 | block = parseBlock(); |
| 7871 | |
| 7872 | if (matchKeyword('catch')) { |
| 7873 | handlers.push(parseCatchClause()); |
| 7874 | } |
| 7875 | |
| 7876 | if (matchKeyword('finally')) { |
| 7877 | lex(); |
| 7878 | finalizer = parseBlock(); |
| 7879 | } |
| 7880 | |
| 7881 | if (handlers.length === 0 && !finalizer) { |
| 7882 | throwError({}, Messages.NoCatchOrFinally); |
| 7883 | } |
| 7884 | |
| 7885 | return markerApply(marker, delegate.createTryStatement(block, [], handlers, finalizer)); |
| 7886 | } |
| 7887 | |
| 7888 | // 12.15 The debugger statement |
| 7889 |
no test coverage detected