(node, catchBlock=[])
| 52 | } |
| 53 | |
| 54 | function _rawTryCatch(node, catchBlock=[]) { |
| 55 | return babelTypes.tryStatement( |
| 56 | node, |
| 57 | babelTypes.catchClause( |
| 58 | babelTypes.identifier('e'), |
| 59 | babelTypes.blockStatement(catchBlock))); |
| 60 | } |
| 61 | |
| 62 | function wrapTryCatch(node) { |
| 63 | return _rawTryCatch(babelTypes.blockStatement([node])); |
no test coverage detected