br_table
Branch through a table of label depths.
core0x0E
Syntax
br_table
Stack Effect
label arity + [i32] -> branchOpcode
- Hex
0x0E- Decimal
14- Bytes
[0x0e]- Encoding
0x0E <labels:label-vector>- Immediates
labels:label-vector— vector of labelidx + default labelidx
- 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
;; br_table example
)