Break from loops when unwind != nil

This commit is contained in:
joeduffy 2017-01-25 14:00:23 -08:00
parent 18de260ecc
commit 61aacf19b9

View file

@ -252,6 +252,7 @@ func (e *evaluator) evalWhileStatement(node *ast.WhileStatement) *unwind {
} else {
// If it's not a continue or break, stash the unwind away and return it.
uw = uws
break
}
}
} else {