MDN / nop: Wasm text instruction
MDN / nop: Wasm text instruction
nop stands for no-operation. It literally does nothing.
(module
(func (export "do_nothing")
nop
)
)
const url = "{%wasm-url%}";
await WebAssembly.instantiateStreaming(fetch(url)).then((result) => {
result.instance.exports.do_nothing();
});
Syntax
nop
InstructionBinary opcodenop0x01