From 9fd7b9c4e27a1605c17f9aca80b4504b418373b4 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 5 Jul 2023 20:13:19 +0200 Subject: [PATCH] js: set maxTopLevelNames to huge value properly --- tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java | 2 +- .../main/java/org/teavm/tooling/daemon/RemoteBuildRequest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java b/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java index 49d1aab6c..f8268d4df 100644 --- a/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java +++ b/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java @@ -76,7 +76,7 @@ public class TeaVMTool { private String targetFileName = ""; private boolean obfuscated = true; private boolean strict; - private int maxTopLevelNames = 10000; + private int maxTopLevelNames = 1000000; private String mainClass; private String entryPointName = "main"; private Properties properties = new Properties(); diff --git a/tools/core/src/main/java/org/teavm/tooling/daemon/RemoteBuildRequest.java b/tools/core/src/main/java/org/teavm/tooling/daemon/RemoteBuildRequest.java index 464cb920f..2f41dc4ce 100644 --- a/tools/core/src/main/java/org/teavm/tooling/daemon/RemoteBuildRequest.java +++ b/tools/core/src/main/java/org/teavm/tooling/daemon/RemoteBuildRequest.java @@ -41,7 +41,7 @@ public class RemoteBuildRequest implements Serializable { public String cacheDirectory; public boolean obfuscated; public boolean strict; - public int maxTopLevelNames; + public int maxTopLevelNames = 1000000; public Properties properties; public TeaVMOptimizationLevel optimizationLevel; public boolean fastDependencyAnalysis;