mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Prevent from generating functions with NaN identifier
This commit is contained in:
parent
b74c501fa6
commit
0473020bc8
|
@ -49,7 +49,11 @@ public class MinifyingAliasProvider implements AliasProvider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getStaticMethodAlias(MethodReference method) {
|
public String getStaticMethodAlias(MethodReference method) {
|
||||||
return RenderingUtil.indexToId(lastSuffix++, startLetters);
|
String result;
|
||||||
|
do {
|
||||||
|
result = RenderingUtil.indexToId(lastSuffix++, startLetters);
|
||||||
|
} while (!usedAliases.add(result) || RenderingUtil.KEYWORDS.contains(result));
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user