Make more tests quickcheck-compatible, remove unused code

This commit is contained in:
Jef
2018-12-14 16:35:48 +01:00
parent b832832c76
commit 1e04dc90b6
3 changed files with 28 additions and 39 deletions

View File

@@ -148,7 +148,7 @@ pub fn translate(
..
}) => {
if ty != Type::EmptyBlockType {
return_from_block(&mut ctx, block_state.depth);
return_from_block(&mut ctx);
}
// Finalize if..else block by jumping to the `end_label`.
@@ -179,7 +179,7 @@ pub fn translate(
let control_frame = control_frames.pop().expect("control stack is never empty");
if control_frame.ty != Type::EmptyBlockType && !control_frames.is_empty() {
return_from_block(&mut ctx, control_frame.block_state.depth);
return_from_block(&mut ctx);
}
if !control_frame.kind.is_loop() {