mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix Class.newInstance in minified mode
This commit is contained in:
parent
d5db7270be
commit
b409355000
|
@ -126,7 +126,7 @@ public class PlatformGenerator implements Generator, Injector, DependencyPlugin
|
|||
writer.append("var $r = $rt_nativeThread().pop();").softNewLine();
|
||||
writer.append(cls + ".$$constructor$$($r);").softNewLine();
|
||||
writer.append("if").ws().append("($rt_suspending())").ws().append("{").indent().softNewLine();
|
||||
writer.append("return").ws().append("$rt_nativeThread().push($r);").softNewLine();
|
||||
writer.append("return $rt_nativeThread().push($r);").softNewLine();
|
||||
writer.outdent().append("}").softNewLine();
|
||||
writer.append("return $r;").softNewLine();
|
||||
writer.outdent().append("}").softNewLine();
|
||||
|
|
Loading…
Reference in New Issue
Block a user