mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -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;
|
return;
|
||||||
}
|
}
|
||||||
AssignmentStatement assignment = (AssignmentStatement)last;
|
AssignmentStatement assignment = (AssignmentStatement)last;
|
||||||
|
if (assignment.isAsync()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!(assignment.getLeftValue() instanceof VariableExpr)) {
|
if (!(assignment.getLeftValue() instanceof VariableExpr)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user