@aztec/noir-acvm_js 0.0.1-commit.f504929 → 0.0.1-commit.f81dbcf

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -1,6 +1,14 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const buildInfo: () => any;
5
+ export const initLogLevel: (a: number, b: number) => [number, number];
6
+ export const and: (a: any, b: any) => any;
7
+ export const xor: (a: any, b: any) => any;
8
+ export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
9
+ export const blake2s256: (a: number, b: number) => [number, number];
10
+ export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
11
+ export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
4
12
  export const compressWitness: (a: any) => [number, number, number, number];
5
13
  export const decompressWitness: (a: number, b: number) => [number, number, number];
6
14
  export const compressWitnessStack: (a: any) => [number, number, number, number];
@@ -8,27 +16,18 @@ export const decompressWitnessStack: (a: number, b: number) => [number, number,
8
16
  export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
9
17
  export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
10
18
  export const executeProgram: (a: number, b: number, c: any, d: any) => any;
11
- export const and: (a: any, b: any) => any;
12
- export const xor: (a: any, b: any) => any;
13
- export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
14
- export const blake2s256: (a: number, b: number) => [number, number];
15
- export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
16
- export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
17
19
  export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
18
20
  export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
19
21
  export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
20
- export const initLogLevel: (a: number, b: number) => [number, number];
21
- export const buildInfo: () => any;
22
- export const wasm_bindgen__closure__destroy__h589cd82bcdcce84d: (a: number, b: number) => void;
23
- export const wasm_bindgen__convert__closures_____invoke__h149dcfc5e545a40e: (a: number, b: number, c: any, d: number, e: any) => void;
24
- export const wasm_bindgen__convert__closures_____invoke__hd0bc2cf4f980f051: (a: number, b: number, c: any) => [number, number];
25
- export const wasm_bindgen__convert__closures_____invoke__h5a259cce50f322a2: (a: number, b: number, c: any, d: any) => void;
26
- export const wasm_bindgen__convert__closures_____invoke__h5a259cce50f322a2_21: (a: number, b: number, c: any, d: any) => void;
27
- export const __wbindgen_malloc: (a: number, b: number) => number;
28
- export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
29
22
  export const __wbindgen_exn_store: (a: number) => void;
30
23
  export const __externref_table_alloc: () => number;
31
- export const __wbindgen_externrefs: WebAssembly.Table;
24
+ export const __wbindgen_export_2: WebAssembly.Table;
32
25
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
26
+ export const __wbindgen_malloc: (a: number, b: number) => number;
27
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
28
+ export const __wbindgen_export_6: WebAssembly.Table;
33
29
  export const __externref_table_dealloc: (a: number) => void;
30
+ export const closure445_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure924_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure928_externref_shim: (a: number, b: number, c: any, d: any) => void;
34
33
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/noir-acvm_js",
3
- "version": "0.0.1-commit.f504929",
3
+ "version": "0.0.1-commit.f81dbcf",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@esm-bundle/chai": "^4.3.4-fix.0",
41
- "@web/dev-server-esbuild": "^1.0.5",
41
+ "@web/dev-server-esbuild": "^1.0.4",
42
42
  "@web/test-runner": "^0.20.2",
43
43
  "@web/test-runner-playwright": "^0.11.1",
44
44
  "chai": "^6.2.2",
45
- "eslint": "^10.0.2",
45
+ "eslint": "^9.39.2",
46
46
  "eslint-plugin-prettier": "^5.5.5",
47
47
  "mocha": "^11.7.5",
48
48
  "prettier": "3.8.1",
package/web/acvm_js.d.ts CHANGED
@@ -1,88 +1,40 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
-
4
- /**
5
- * @typedef {Object} BuildInfo - Information about how the installed package was built
6
- * @property {string} gitHash - The hash of the git commit from which the package was built.
7
- * @property {string} version - The version of the package at the built git commit.
8
- * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
9
- */
10
- export type BuildInfo = {
11
- gitHash: string;
12
- version: string;
13
- dirty: string;
14
- }
15
-
16
-
17
-
18
- // Map from witness index to hex string value of witness.
19
- export type WitnessMap = Map<number, string>;
20
-
21
3
  /**
22
- * An execution result containing two witnesses.
23
- * 1. The full solved witness of the execution.
24
- * 2. The return witness which contains the given public return values within the full witness.
4
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
5
+ * @returns {BuildInfo} - Information on how the installed package was built.
25
6
  */
26
- export type SolvedAndReturnWitness = {
27
- solvedWitness: WitnessMap;
28
- returnWitness: WitnessMap;
29
- }
30
-
31
-
32
-
33
- export type ForeignCallInput = string[]
34
- export type ForeignCallOutput = string | string[]
35
-
7
+ export function buildInfo(): BuildInfo;
36
8
  /**
37
- * A callback which performs an foreign call and returns the response.
38
- * @callback ForeignCallHandler
39
- * @param {string} name - The identifier for the type of foreign call being performed.
40
- * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
41
- * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
9
+ * Sets the package's logging level.
10
+ *
11
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
42
12
  */
43
- export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
44
-
45
-
46
-
47
- export type RawAssertionPayload = {
48
- selector: string;
49
- data: string[];
50
- };
51
-
52
- export type ExecutionError = Error & {
53
- callStack?: string[];
54
- rawAssertionPayload?: RawAssertionPayload;
55
- acirFunctionId?: number;
56
- brilligFunctionId?: number;
57
- };
58
-
59
-
60
-
61
- export type StackItem = {
62
- index: number;
63
- witness: WitnessMap;
64
- }
65
-
66
- export type WitnessStack = Array<StackItem>;
67
-
68
-
69
-
13
+ export function initLogLevel(filter: string): void;
70
14
  /**
71
15
  * Performs a bitwise AND operation between `lhs` and `rhs`
72
16
  */
73
17
  export function and(lhs: string, rhs: string): string;
74
-
18
+ /**
19
+ * Performs a bitwise XOR operation between `lhs` and `rhs`
20
+ */
21
+ export function xor(lhs: string, rhs: string): string;
22
+ /**
23
+ * Sha256 compression function
24
+ */
25
+ export function sha256_compression(inputs: Uint32Array, state: Uint32Array): Uint32Array;
75
26
  /**
76
27
  * Calculates the Blake2s256 hash of the input bytes
77
28
  */
78
29
  export function blake2s256(inputs: Uint8Array): Uint8Array;
79
-
80
30
  /**
81
- * Returns the `BuildInfo` object containing information about how the installed package was built.
82
- * @returns {BuildInfo} - Information on how the installed package was built.
31
+ * Verifies a ECDSA signature over the secp256k1 curve.
83
32
  */
84
- export function buildInfo(): BuildInfo;
85
-
33
+ export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
34
+ /**
35
+ * Verifies a ECDSA signature over the secp256r1 curve.
36
+ */
37
+ export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
86
38
  /**
87
39
  * Compresses a `WitnessMap` into the binary format outputted by Nargo.
88
40
  *
@@ -90,15 +42,6 @@ export function buildInfo(): BuildInfo;
90
42
  * @returns {Uint8Array} A compressed witness map
91
43
  */
92
44
  export function compressWitness(witness_map: WitnessMap): Uint8Array;
93
-
94
- /**
95
- * Compresses a `WitnessStack` into the binary format outputted by Nargo.
96
- *
97
- * @param {WitnessStack} witness_stack - A witness stack.
98
- * @returns {Uint8Array} A compressed witness stack
99
- */
100
- export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
101
-
102
45
  /**
103
46
  * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
104
47
  * This should be used to only fetch the witness map for the main function.
@@ -107,7 +50,13 @@ export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
107
50
  * @returns {WitnessMap} The decompressed witness map.
108
51
  */
109
52
  export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
110
-
53
+ /**
54
+ * Compresses a `WitnessStack` into the binary format outputted by Nargo.
55
+ *
56
+ * @param {WitnessStack} witness_stack - A witness stack.
57
+ * @returns {Uint8Array} A compressed witness stack
58
+ */
59
+ export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
111
60
  /**
112
61
  * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
113
62
  *
@@ -115,17 +64,6 @@ export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
115
64
  * @returns {WitnessStack} The decompressed witness stack.
116
65
  */
117
66
  export function decompressWitnessStack(compressed_witness: Uint8Array): WitnessStack;
118
-
119
- /**
120
- * Verifies a ECDSA signature over the secp256k1 curve.
121
- */
122
- export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
123
-
124
- /**
125
- * Verifies a ECDSA signature over the secp256r1 curve.
126
- */
127
- export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
128
-
129
67
  /**
130
68
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
131
69
  *
@@ -135,7 +73,6 @@ export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_byte
135
73
  * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
136
74
  */
137
75
  export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessMap>;
138
-
139
76
  /**
140
77
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
141
78
  * This method also extracts the public return values from the solved witness into its own return witness.
@@ -146,7 +83,6 @@ export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap,
146
83
  * @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
147
84
  */
148
85
  export function executeCircuitWithReturnWitness(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<SolvedAndReturnWitness>;
149
-
150
86
  /**
151
87
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
152
88
  *
@@ -156,7 +92,14 @@ export function executeCircuitWithReturnWitness(program: Uint8Array, initial_wit
156
92
  * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
157
93
  */
158
94
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
159
-
95
+ /**
96
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
97
+ *
98
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
99
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
100
+ * @returns {WitnessMap} A witness map containing the circuit's return values.
101
+ */
102
+ export function getReturnWitness(program: Uint8Array, witness_map: WitnessMap): WitnessMap;
160
103
  /**
161
104
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
162
105
  *
@@ -165,7 +108,6 @@ export function executeProgram(program: Uint8Array, initial_witness: WitnessMap,
165
108
  * @returns {WitnessMap} A witness map containing the circuit's public parameters.
166
109
  */
167
110
  export function getPublicParametersWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
168
-
169
111
  /**
170
112
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
171
113
  *
@@ -176,86 +118,124 @@ export function getPublicParametersWitness(program: Uint8Array, solved_witness:
176
118
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
177
119
 
178
120
  /**
179
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
180
- *
181
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
182
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
183
- * @returns {WitnessMap} A witness map containing the circuit's return values.
121
+ * @typedef {Object} BuildInfo - Information about how the installed package was built
122
+ * @property {string} gitHash - The hash of the git commit from which the package was built.
123
+ * @property {string} version - The version of the package at the built git commit.
124
+ * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
184
125
  */
185
- export function getReturnWitness(program: Uint8Array, witness_map: WitnessMap): WitnessMap;
126
+ export type BuildInfo = {
127
+ gitHash: string;
128
+ version: string;
129
+ dirty: string;
130
+ }
186
131
 
187
- /**
188
- * Sets the package's logging level.
189
- *
190
- * @param {LogLevel} level - The maximum level of logging to be emitted.
191
- */
192
- export function initLogLevel(filter: string): void;
132
+
133
+
134
+ // Map from witness index to hex string value of witness.
135
+ export type WitnessMap = Map<number, string>;
193
136
 
194
137
  /**
195
- * Sha256 compression function
138
+ * An execution result containing two witnesses.
139
+ * 1. The full solved witness of the execution.
140
+ * 2. The return witness which contains the given public return values within the full witness.
196
141
  */
197
- export function sha256_compression(inputs: Uint32Array, state: Uint32Array): Uint32Array;
142
+ export type SolvedAndReturnWitness = {
143
+ solvedWitness: WitnessMap;
144
+ returnWitness: WitnessMap;
145
+ }
146
+
147
+
148
+
149
+ export type StackItem = {
150
+ index: number;
151
+ witness: WitnessMap;
152
+ }
153
+
154
+ export type WitnessStack = Array<StackItem>;
155
+
156
+
157
+
158
+ export type RawAssertionPayload = {
159
+ selector: string;
160
+ data: string[];
161
+ };
162
+
163
+ export type ExecutionError = Error & {
164
+ callStack?: string[];
165
+ rawAssertionPayload?: RawAssertionPayload;
166
+ acirFunctionId?: number;
167
+ brilligFunctionId?: number;
168
+ };
169
+
170
+
171
+
172
+ export type ForeignCallInput = string[]
173
+ export type ForeignCallOutput = string | string[]
198
174
 
199
175
  /**
200
- * Performs a bitwise XOR operation between `lhs` and `rhs`
201
- */
202
- export function xor(lhs: string, rhs: string): string;
176
+ * A callback which performs an foreign call and returns the response.
177
+ * @callback ForeignCallHandler
178
+ * @param {string} name - The identifier for the type of foreign call being performed.
179
+ * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
180
+ * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
181
+ */
182
+ export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
183
+
184
+
203
185
 
204
186
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
205
187
 
206
188
  export interface InitOutput {
207
- readonly memory: WebAssembly.Memory;
208
- readonly compressWitness: (a: any) => [number, number, number, number];
209
- readonly decompressWitness: (a: number, b: number) => [number, number, number];
210
- readonly compressWitnessStack: (a: any) => [number, number, number, number];
211
- readonly decompressWitnessStack: (a: number, b: number) => [number, number, number];
212
- readonly executeCircuit: (a: number, b: number, c: any, d: any) => any;
213
- readonly executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
214
- readonly executeProgram: (a: number, b: number, c: any, d: any) => any;
215
- readonly and: (a: any, b: any) => any;
216
- readonly xor: (a: any, b: any) => any;
217
- readonly sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
218
- readonly blake2s256: (a: number, b: number) => [number, number];
219
- readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
220
- readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
221
- readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
222
- readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
223
- readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
224
- readonly initLogLevel: (a: number, b: number) => [number, number];
225
- readonly buildInfo: () => any;
226
- readonly wasm_bindgen__closure__destroy__h589cd82bcdcce84d: (a: number, b: number) => void;
227
- readonly wasm_bindgen__convert__closures_____invoke__h149dcfc5e545a40e: (a: number, b: number, c: any, d: number, e: any) => void;
228
- readonly wasm_bindgen__convert__closures_____invoke__hd0bc2cf4f980f051: (a: number, b: number, c: any) => [number, number];
229
- readonly wasm_bindgen__convert__closures_____invoke__h5a259cce50f322a2: (a: number, b: number, c: any, d: any) => void;
230
- readonly wasm_bindgen__convert__closures_____invoke__h5a259cce50f322a2_21: (a: number, b: number, c: any, d: any) => void;
231
- readonly __wbindgen_malloc: (a: number, b: number) => number;
232
- readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
233
- readonly __wbindgen_exn_store: (a: number) => void;
234
- readonly __externref_table_alloc: () => number;
235
- readonly __wbindgen_externrefs: WebAssembly.Table;
236
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
237
- readonly __externref_table_dealloc: (a: number) => void;
238
- readonly __wbindgen_start: () => void;
189
+ readonly memory: WebAssembly.Memory;
190
+ readonly buildInfo: () => any;
191
+ readonly initLogLevel: (a: number, b: number) => [number, number];
192
+ readonly and: (a: any, b: any) => any;
193
+ readonly xor: (a: any, b: any) => any;
194
+ readonly sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
195
+ readonly blake2s256: (a: number, b: number) => [number, number];
196
+ readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
197
+ readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
198
+ readonly compressWitness: (a: any) => [number, number, number, number];
199
+ readonly decompressWitness: (a: number, b: number) => [number, number, number];
200
+ readonly compressWitnessStack: (a: any) => [number, number, number, number];
201
+ readonly decompressWitnessStack: (a: number, b: number) => [number, number, number];
202
+ readonly executeCircuit: (a: number, b: number, c: any, d: any) => any;
203
+ readonly executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
204
+ readonly executeProgram: (a: number, b: number, c: any, d: any) => any;
205
+ readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
206
+ readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
207
+ readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
208
+ readonly __wbindgen_exn_store: (a: number) => void;
209
+ readonly __externref_table_alloc: () => number;
210
+ readonly __wbindgen_export_2: WebAssembly.Table;
211
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
212
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
213
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
214
+ readonly __wbindgen_export_6: WebAssembly.Table;
215
+ readonly __externref_table_dealloc: (a: number) => void;
216
+ readonly closure445_externref_shim: (a: number, b: number, c: any) => void;
217
+ readonly closure924_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
+ readonly closure928_externref_shim: (a: number, b: number, c: any, d: any) => void;
219
+ readonly __wbindgen_start: () => void;
239
220
  }
240
221
 
241
222
  export type SyncInitInput = BufferSource | WebAssembly.Module;
242
-
243
223
  /**
244
- * Instantiates the given `module`, which can either be bytes or
245
- * a precompiled `WebAssembly.Module`.
246
- *
247
- * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
248
- *
249
- * @returns {InitOutput}
250
- */
224
+ * Instantiates the given `module`, which can either be bytes or
225
+ * a precompiled `WebAssembly.Module`.
226
+ *
227
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
228
+ *
229
+ * @returns {InitOutput}
230
+ */
251
231
  export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
252
232
 
253
233
  /**
254
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
255
- * for everything else, calls `WebAssembly.instantiate` directly.
256
- *
257
- * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
258
- *
259
- * @returns {Promise<InitOutput>}
260
- */
234
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
235
+ * for everything else, calls `WebAssembly.instantiate` directly.
236
+ *
237
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
238
+ *
239
+ * @returns {Promise<InitOutput>}
240
+ */
261
241
  export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;