nop

nop steht für "no-operation". Es tut buchstäblich nichts.

Probieren Sie es aus

(module
  (func (export "do_nothing")
    nop
  )
)
const url = "{%wasm-url%}";
await WebAssembly.instantiateStreaming(fetch(url)).then((result) => {
  result.instance.exports.do_nothing();
});

Syntax

wasm
nop
Anweisung Binärer Opcode
nop 0x01