1. WebAssembly
  2. Reference
  3. WebAssembly control flow instructions
  4. nop

nop

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

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /