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());