* Processes the provided catch clause. * @param {CatchClause} catchClause catch clause
(catchClause)
| 3436 | * @param {CatchClause} catchClause catch clause |
| 3437 | */ |
| 3438 | walkCatchClause(catchClause) { |
| 3439 | this.inBlockScope(() => { |
| 3440 | // Error binding is optional in catch clause since ECMAScript 2019 |
| 3441 | if (catchClause.param !== null) { |
| 3442 | this.enterPattern(catchClause.param, (ident) => { |
| 3443 | this.defineVariable(ident); |
| 3444 | }); |
| 3445 | this.walkPattern(catchClause.param); |
| 3446 | } |
| 3447 | const prev = this.prevStatement; |
| 3448 | this.blockPreWalkStatement(catchClause.body); |
| 3449 | this.prevStatement = prev; |
| 3450 | this.walkStatement(catchClause.body); |
| 3451 | }, true); |
| 3452 | } |
| 3453 | |
| 3454 | /** |
| 3455 | * Processes the provided pattern. |
no test coverage detected