MDN self-hosted library · e01.org

WebAssembly variable instructions

WebAssembly variable getter and setter instructions.

no runnable cells landing-page upstream source

WebAssembly variable getter and setter instructions.

Global

  • global.get
  • : Load the value of a global variable onto the stack.
  • global.set
  • : Set the value of a global variable.

Local

  • local
  • : Declare a new local variable.
  • local.get
  • : Load the value of a local variable onto the stack.
  • local.set
  • : Set the value of a local variable.
  • local.tee
  • : Set the value of a local variable and keep the value on the stack.