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

WebAssembly - | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

WebAssembly

Baseline
Widely available
*

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2017 10.

* Some parts of this feature may have varying levels of support.

WebAssembly JavaScript WebAssembly .

, WebAssembly ( ). Math , Intl .

In this article

WebAssembly :

WebAssembly.instantiate()

WebAssembly Module Instance API.

WebAssembly.instantiateStreaming()

WebAssembly Module Instance .

WebAssembly.compile()

WebAssembly WebAssembly.Module .

WebAssembly.compileStreaming()

WebAssembly.Module .

WebAssembly.validate()

WebAssembly (true) (false) WebAssembly .

WebAssembly.Global()

Creates a new WebAssembly Global object.

WebAssembly.Module()

Creates a new WebAssembly Module object.

WebAssembly.Instance()

Creates a new WebAssembly Instance object.

WebAssembly.Memory()

Creates a new WebAssembly Memory object.

WebAssembly.Table()

Creates a new WebAssembly Table object.

WebAssembly.CompileError()

Creates a new WebAssembly CompileError object.

WebAssembly.LinkError()

Creates a new WebAssembly LinkError object.

WebAssembly.RuntimeError()

Creates a new WebAssembly RuntimeError object.

(GitHub instantiate-streaming.html ) .wasm . ResultObject . instantiateStreaming() Response promise fetch() .

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

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

ResultObject exported_func .

Specification
WebAssembly JavaScript Interface
# webassembly-namespace


Web Proxy Viewer  |  New URL  |  Original Page