Moved register state to scopes
This commit is contained in:
@ -18,7 +18,7 @@ func (f *Function) CompileIf(branch *ast.If) error {
|
||||
}
|
||||
|
||||
f.AddLabel(success)
|
||||
f.pushScope()
|
||||
f.pushScope(branch.Body)
|
||||
err = f.CompileAST(branch.Body)
|
||||
f.popScope()
|
||||
f.AddLabel(fail)
|
||||
|
Reference in New Issue
Block a user