move examples into subfolder, added wasm4 skip_ahead

This commit is contained in:
2021-11-10 22:37:26 +01:00
parent e9f115ee95
commit 911c2e43ad
11 changed files with 112 additions and 77 deletions

View File

@@ -619,8 +619,8 @@ fn emit_expression<'a>(ctx: &mut FunctionContext<'a>, expr: &'a ast::Expression)
ast::Expr::Return { value } => {
if let Some(value) = value {
emit_expression(ctx, value);
ctx.function.instruction(&Instruction::Return);
}
ctx.function.instruction(&Instruction::Return);
}
ast::Expr::Error => unreachable!(),
}