module
Top-level container for types, imports, functions, tables, memories, globals, exports, elements, code, data, and custom sections.
corestructural
Syntax
(module ... )
Stack Effect
N/AOpcode
no executable opcode`module` is a top-level WAT/binary structural form, not an executable instruction. Encoded via the magic header `\00asm` + version `01 00 00 00` and section IDs.
Browser Support
Validated and compiled by the host runtime before instantiation.
Validation Rules
- A binary module must start with the WASM magic bytes and version.
- Section order and declared indexes must be valid.
Common Mistakes
- Confusing a compiled Module with a running Instance.
(module
(func $run)
(export "run" (func $run)))