[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports [Back]  [Original]

WebAssembly.Instance.prototype.exports - WebAssembly | MDN

MDN Web Docs

View in English Always switch to English

WebAssembly.Instance.prototype.exports

Baseline

201710

exports WebAssembly.Instance WebAssembly JavaScript

js
instance.exports;

exports

fetch WebAssembly WebAssembly.instantiateStreaming() JavaScript WebAssembly Instance WebAssembly

js
var importObject = {
  imports: {
    imported_func: function (arg) {
      console.log(arg);
    },
  },
};

WebAssembly.instantiateStreaming(fetch("simple.wasm"), importObject).then(
  (obj) => obj.instance.exports.exported_func(),
);

WebAssembly JavaScript Interface
# dom-instance-exports


Web Proxy Viewer  |  New URL  |  Original Page