Don't set predReturn = true for "for" and "try" controls.

This commit is contained in:
Qi Xiao 2016-09-16 17:30:17 +02:00
parent bff4b529eb
commit 8c2f11f924

View File

@ -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)