mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Prevent async assigment from optimization
This commit is contained in:
parent
b19c545318
commit
ab52f220c2
|
@ -132,6 +132,9 @@ class OptimizingVisitor implements StatementVisitor, ExprVisitor {
|
|||
return;
|
||||
}
|
||||
AssignmentStatement assignment = (AssignmentStatement)last;
|
||||
if (assignment.isAsync()) {
|
||||
return;
|
||||
}
|
||||
if (!(assignment.getLeftValue() instanceof VariableExpr)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user