MDN self-hosted library · e01.org

nop: Wasm text instruction

nop stands for no-operation. It literally does nothing.

no runnable cells webassembly-instruction upstream source

nop stands for no-operation. It literally does nothing.

tabbed-shorter

```wat interactive-example (module (func (export "do_nothing") nop ) )


```js interactive-example
const url = "{%wasm-url%}";
await WebAssembly.instantiateStreaming(fetch(url)).then((result) => {
  result.instance.exports.do_nothing();
});

Syntax

nop
Instruction Binary opcode
nop 0x01

Specifications

Browser compatibility