From da78a9e329e272dedb2400b79a3bdeebff387d47 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:17 -0500 Subject: initial commit --- .../global_objects/webassembly/instance/index.html | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 files/ko/web/javascript/reference/global_objects/webassembly/instance/index.html (limited to 'files/ko/web/javascript/reference/global_objects/webassembly/instance/index.html') diff --git a/files/ko/web/javascript/reference/global_objects/webassembly/instance/index.html b/files/ko/web/javascript/reference/global_objects/webassembly/instance/index.html new file mode 100644 index 0000000000..3141c6809a --- /dev/null +++ b/files/ko/web/javascript/reference/global_objects/webassembly/instance/index.html @@ -0,0 +1,74 @@ +--- +title: WebAssembly.Instance +slug: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance +translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance +--- +
{{JSRef}}
+ +

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

+ +

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

+ +

생성자 구문

+ +
+

중요: 대형 모듈의 인스턴스화는 비용이 많이들 수 있으므로 개발자는 동기 인스턴스 생성이 절대적으로 필요한 경우에만 Instance () 생성자를 사용해야합니다. 비동기 {{jsxref ( "WebAssembly.instantiateStreaming ()")}} 메서드를 사용하세요.

+
+ +
var myInstance = new WebAssembly.Instance(module, importObject);
+ +

매개변수

+ +
+
module
+
인스턴스화 할 WebAssembly.Module 객체입니다.
+
importObject {{optional_inline}}
+
함수 또는 WebAssembly.Memory객체와 같이 새로 생성 된 인스턴스로 가져올 값을 포함하는 객체입니다. 선언 된 각 module 가져오기에 대해 일치하는 속성이 하나 있어야합니다. 그렇지 않으면 WebAssembly.LinkError가 발생합니다.
+
+ +

Instance 인스턴스

+ +

모든 Instance 인스턴스는 Instance() 생성자의 prototype object에서 상속받습니다.이 인스턴스를 수정하면 모든 Instance 인스턴스에 영향을 줍니다.

+ +

인스턴스 속성

+ +

{{page('/ko/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/prototype', 'Properties')}}

+ +

인스턴스 메서드

+ +

{{page('/ko/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/prototype', 'Methods')}}

+ +

명세

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebAssembly JS', '#webassemblyinstance-objects', 'Instance')}}{{Spec2('WebAssembly JS')}}Initial draft definition.
+ +

브라우저 호환성

+ +
+ + +

{{Compat("javascript.builtins.WebAssembly.Instance")}}

+
+ +

같이 보기

+ + -- cgit v1.2.3-54-g00ecf