From d067b986df27b5174bc19ec7c8d61a241bf646ef Mon Sep 17 00:00:00 2001 From: Bernd Busse Date: Fri, 16 Feb 2024 00:25:31 +0100 Subject: [PATCH] JS: fix catch variable not getting minified --- .../java/org/teavm/backend/javascript/rendering/AstWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/backend/javascript/rendering/AstWriter.java b/core/src/main/java/org/teavm/backend/javascript/rendering/AstWriter.java index acfc85032..c7734737a 100644 --- a/core/src/main/java/org/teavm/backend/javascript/rendering/AstWriter.java +++ b/core/src/main/java/org/teavm/backend/javascript/rendering/AstWriter.java @@ -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());