Skip to content

Commit

Permalink
add expression visiting for exception var
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Nov 20, 2020
1 parent 0edfae1 commit db00a8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser/Statement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,9 @@ export class TryCatchStatement extends Statement {
walk(this, 'tryBranch', visitor, options);
walk(this, 'catchBranch', visitor, options);
}
if (this.exceptionVariable && options.walkMode & InternalWalkMode.walkExpressions) {
walk(this, 'exceptionVariable', visitor, options);
}
}
}

Expand Down

0 comments on commit db00a8a

Please sign in to comment.