diff --git a/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java b/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java index 8b556b302..d2f9c5f53 100644 --- a/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java +++ b/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java @@ -111,6 +111,10 @@ public StatementRenderer(RenderingContext context, SourceWriter writer) { this.minifying = context.isMinifying(); this.naming = context.getNaming(); this.debugEmitter = context.getDebugEmitter(); + usedVariableNames.add(context.tempVarName()); + usedVariableNames.add(context.pointerName()); + usedVariableNames.add(context.threadName()); + usedVariableNames.add("arguments"); } public boolean isAsync() {