mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-01-06 10:15:18 +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