Repository navigation
Expand file tree
/
Copy pathindex.md
More file actions
35 lines (22 loc) · 1.71 KB
/
Copy pathindex.md
File metadata and controls
35 lines (22 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: WebAssembly.Instance
slug: WebAssembly/Reference/JavaScript_interface/Instance
original_slug: WebAssembly/JavaScript_interface/Instance
---
{{WebAssemblySidebar}}
**`WebAssembly.Instance`** 개체는 [WebAssembly.Module](/ko/docs/WebAssembly/Reference/JavaScript_interface/Module)의 상태 저장되고 실행 가능한 인스턴스입니다. `Instance` 객체에는 JavaScript에서 WebAssembly 코드로 호출 할 수있는 모든 [Exported WebAssembly functions](/ko/docs/WebAssembly/Guides/Exported_functions)가 포함되어 있습니다.
주어진 [`WebAssembly.Module`](/ko/docs/WebAssembly/Reference/JavaScript_interface/Module) 객체를 동기적으로 인스턴스화하기 위해 `WebAssembly.Instance()` 생성자 함수를 호출 할 수 있습니다. 하지만 `Instance`를 가져 오는 주요 방법은 비동기 [`WebAssembly.instantiateStreaming ()`](/ko/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming) 함수를 사용하는 것입니다.
## 생성자
- [`WebAssembly.Instance()`](/ko/docs/WebAssembly/JavaScript_interface/Instance/Instance)
- : Creates a new `Instance` object.
## 인스턴스 속성
- [`Instance.prototype.exports`](/ko/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
- : 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.
## 명세
{{Specifications}}
## 브라우저 호환성
{{Compat}}
## 같이 보기
- [WebAssembly](/ko/docs/WebAssembly) overview page
- [WebAssembly concepts](/ko/docs/WebAssembly/Guides/Concepts)
- [Using the WebAssembly JavaScript API](/ko/docs/WebAssembly/Guides/Using_the_JavaScript_API)