Globals store scalar values or supported reference values. JavaScript can create `WebAssembly.Global` objects for imported globals and can inspect exported globals.

  • Immutable globals cannot be set after instantiation.
  • Mutable exported globals can be assigned through the JS object when allowed.
  • Portable strings are usually passed as pointer plus byte length into linear memory.