Break from loops when unwind != nil
This commit is contained in:
parent
18de260ecc
commit
61aacf19b9
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue