fix(compiler): reset scopes (#61)
This commit is contained in:
parent
66d158bed8
commit
281cbb95f8
@ -123,6 +123,7 @@ auto compiler::emit_decl_function(decl_function const& func) -> void
|
|||||||
label_idx_ = 0;
|
label_idx_ = 0;
|
||||||
can_break_ = false;
|
can_break_ = false;
|
||||||
can_continue_ = false;
|
can_continue_ = false;
|
||||||
|
scopes_.clear();
|
||||||
stackframe_.clear();
|
stackframe_.clear();
|
||||||
break_blks_.clear();
|
break_blks_.clear();
|
||||||
continue_blks_.clear();
|
continue_blks_.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user