WebAssembly.Instance

WebAssembly.Instance 개체는 WebAssembly.Module의 상태 저장되고 실행 가능한 인스턴스입니다. Instance 객체에는 JavaScript에서 WebAssembly 코드로 호출 할 수있는 모든 Exported WebAssembly functions가 포함되어 있습니다.

주어진 WebAssembly.Module 객체를 동기적으로 인스턴스화하기 위해 WebAssembly.Instance() 생성자 함수를 호출 할 수 있습니다. 하지만 Instance를 가져 오는 주요 방법은 비동기 WebAssembly.instantiateStreaming () 함수를 사용하는 것입니다.

생성자

WebAssembly.Instance() (en-US)

Creates a new Instance object.

인스턴스 속성

Instance.prototype.exports (en-US)

Returns an object containing as its members all the functions exported from the WebAssembly module instance, to allow them to be accessed and used by JavaScript. Read-only.

명세

Specification
WebAssembly JavaScript Interface
# instances

브라우저 호환성

BCD tables only load in the browser

같이 보기