GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

nop: Wasm text instruction

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

**`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

```wat
nop
```

| Instruction | Binary opcode |
| ----------- | ------------- |
| `nop` | `0x01` |

## Specifications

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"nop: Wasm text instruction". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/Control_flow/nop

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·