Prevent async assigment from optimization

This commit is contained in:
konsoletyper 2015-03-11 20:33:13 +03:00
parent b19c545318
commit ab52f220c2

View File

@ -132,6 +132,9 @@ class OptimizingVisitor implements StatementVisitor, ExprVisitor {
return;
}
AssignmentStatement assignment = (AssignmentStatement)last;
if (assignment.isAsync()) {
return;
}
if (!(assignment.getLeftValue() instanceof VariableExpr)) {
return;
}