JS: fix catch variable not getting minified

This commit is contained in:
Bernd Busse 2024-02-16 00:25:31 +01:00 committed by Alexey Andreev
parent ab253fd34a
commit d067b986df

View File

@ -460,7 +460,7 @@ public class AstWriter {
print(node.getTryBlock());
for (CatchClause cc : node.getCatchClauses()) {
writer.ws().append("catch").ws().append('(');
writer.append(cc.getVarName().getIdentifier());
print(cc.getVarName());
if (cc.getCatchCondition() != null) {
writer.append(" if ");
print(cc.getCatchCondition());