nop: Wasm text instruction
nop stands for no-operation. It literally does nothing.
Try it
(module
(func (export "do_nothing")
nop
)
)
const url = "{%wasm-url%}";
await WebAssembly.instantiateStreaming(fetch(url)).then((result) => {
result.instance.exports.do_nothing();
});
Syntax
wat
nop
| Instruction | Binary opcode |
|---|---|
nop |
0x01 |
Specifications
| Specification |
|---|
| WebAssembly Core Specification> # -hrefsyntax-instr-controlmathsfnop> |