Movatterモバイル変換


[0]ホーム

URL:


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

unreachable: Wasm text instruction

unreachable is used to denote a point in code that should not be reachable.unreachable is an unconditional trap: in the case where anunreachable is reached and executed, the instruction traps.

Try it

(module  (func (export "throw")    unreachable  ))
const url = "{%wasm-url%}";await WebAssembly.instantiateStreaming(fetch(url)).then((result) => {  result.instance.exports.throw();  // Expected output: RuntimeError: unreachable});

Syntax

wat
unreachable
InstructionBinary opcode
unreachable0x00

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp