drop
Discard the top stack value.
core0x1A
Syntax
drop
Stack Effect
[t] -> []Opcode
- Hex
0x1A- Decimal
26- Bytes
[0x1a]- Encoding
0x1A- Category
- parametric
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
;; drop example
)