Fix some issues with the use of stack depth

This commit is contained in:
Jef
2018-12-19 14:42:00 +01:00
parent 3b5c11a92a
commit f91b9072de
2 changed files with 14 additions and 5 deletions

View File

@@ -269,6 +269,8 @@ pub fn translate(
return_from_block(ctx, arity, control_frames.is_empty());
}
// TODO: What is the correct order of this and the `define_label`? It's clear for `block`s
// but I'm not certain for `if..then..else..end`.
end_block(ctx, control_frame.block_state);
if let Some(block_end) = control_frame.kind.block_end() {