mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-03 05:44:10 -08:00
JS: fix catch variable not getting minified
This commit is contained in:
parent
ab253fd34a
commit
d067b986df
|
@ -460,7 +460,7 @@ public class AstWriter {
|
||||||
print(node.getTryBlock());
|
print(node.getTryBlock());
|
||||||
for (CatchClause cc : node.getCatchClauses()) {
|
for (CatchClause cc : node.getCatchClauses()) {
|
||||||
writer.ws().append("catch").ws().append('(');
|
writer.ws().append("catch").ws().append('(');
|
||||||
writer.append(cc.getVarName().getIdentifier());
|
print(cc.getVarName());
|
||||||
if (cc.getCatchCondition() != null) {
|
if (cc.getCatchCondition() != null) {
|
||||||
writer.append(" if ");
|
writer.append(" if ");
|
||||||
print(cc.getCatchCondition());
|
print(cc.getCatchCondition());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user