return
Return from the current function.
core0x0F
Syntax
return
Stack Effect
function results -> function exitOpcode
- Hex
0x0F- Decimal
15- Bytes
[0x0f]- Encoding
0x0F- Category
- control
Browser Support
Core WebAssembly instruction.
Validation Rules
- Operands and result types must match the instruction signature.
- The instruction must appear in a valid structured control context.
Common Mistakes
- Using the instruction with the wrong operand type.
- Forgetting that WAT validation is stack-typed.
(func $example
;; return example
)