mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 19:27:58 +08:00
Don't set predReturn = true for "for" and "try" controls.
This commit is contained in:
parent
bff4b529eb
commit
8c2f11f924
|
@ -366,7 +366,6 @@ func (cp *compiler) control(n *parse.Control) OpFunc {
|
|||
if e != nil {
|
||||
throw(e)
|
||||
}
|
||||
ec.predReturn = true
|
||||
}
|
||||
case parse.WhileControl:
|
||||
condOp := cp.chunkOp(n.Condition)
|
||||
|
@ -415,7 +414,6 @@ func (cp *compiler) control(n *parse.Control) OpFunc {
|
|||
throw(ex)
|
||||
}
|
||||
}
|
||||
ec.predReturn = true
|
||||
}
|
||||
case parse.BeginControl:
|
||||
return cp.chunk(n.Body)
|
||||
|
|
Loading…
Reference in New Issue
Block a user