@noir-lang/noir_wasm 0.18.0-3d5e43a.nightly → 0.18.0-6ca33a2.aztec
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.
- package/nodejs/noir_wasm.d.ts +13 -13
- package/nodejs/noir_wasm.js +54 -52
- package/nodejs/noir_wasm_bg.wasm +0 -0
- package/nodejs/noir_wasm_bg.wasm.d.ts +5 -5
- package/package.json +2 -2
- package/web/noir_wasm.d.ts +18 -18
- package/web/noir_wasm.js +55 -53
- package/web/noir_wasm_bg.wasm +0 -0
- package/web/noir_wasm_bg.wasm.d.ts +5 -5
package/nodejs/noir_wasm.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {
|
|
5
|
-
* @
|
|
6
|
-
* @param {DependencyGraph | undefined} dependency_graph
|
|
7
|
-
* @returns {CompileResult}
|
|
4
|
+
* @param {Uint8Array} bytes
|
|
5
|
+
* @returns {any}
|
|
8
6
|
*/
|
|
9
|
-
export function
|
|
7
|
+
export function acir_read_bytes(bytes: Uint8Array): any;
|
|
8
|
+
/**
|
|
9
|
+
* @param {any} acir
|
|
10
|
+
* @returns {Uint8Array}
|
|
11
|
+
*/
|
|
12
|
+
export function acir_write_bytes(acir: any): Uint8Array;
|
|
10
13
|
/**
|
|
11
14
|
* @param {string} level
|
|
12
15
|
*/
|
|
@@ -16,15 +19,12 @@ export function init_log_level(level: string): void;
|
|
|
16
19
|
*/
|
|
17
20
|
export function build_info(): any;
|
|
18
21
|
/**
|
|
19
|
-
* @param {
|
|
20
|
-
* @
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @param {any} acir
|
|
25
|
-
* @returns {Uint8Array}
|
|
22
|
+
* @param {string} entry_point
|
|
23
|
+
* @param {boolean | undefined} contracts
|
|
24
|
+
* @param {DependencyGraph | undefined} dependency_graph
|
|
25
|
+
* @returns {CompileResult}
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
27
|
+
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;
|
|
28
28
|
|
|
29
29
|
export type Diagnostic = {
|
|
30
30
|
message: string;
|
package/nodejs/noir_wasm.js
CHANGED
|
@@ -183,53 +183,6 @@ function debugString(val) {
|
|
|
183
183
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
184
184
|
return className;
|
|
185
185
|
}
|
|
186
|
-
/**
|
|
187
|
-
* @param {string} entry_point
|
|
188
|
-
* @param {boolean | undefined} contracts
|
|
189
|
-
* @param {DependencyGraph | undefined} dependency_graph
|
|
190
|
-
* @returns {CompileResult}
|
|
191
|
-
*/
|
|
192
|
-
module.exports.compile = function(entry_point, contracts, dependency_graph) {
|
|
193
|
-
try {
|
|
194
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
195
|
-
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
196
|
-
const len0 = WASM_VECTOR_LEN;
|
|
197
|
-
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph));
|
|
198
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
199
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
200
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
201
|
-
if (r2) {
|
|
202
|
-
throw takeObject(r1);
|
|
203
|
-
}
|
|
204
|
-
return takeObject(r0);
|
|
205
|
-
} finally {
|
|
206
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
function handleError(f, args) {
|
|
211
|
-
try {
|
|
212
|
-
return f.apply(this, args);
|
|
213
|
-
} catch (e) {
|
|
214
|
-
wasm.__wbindgen_export_2(addHeapObject(e));
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* @param {string} level
|
|
219
|
-
*/
|
|
220
|
-
module.exports.init_log_level = function(level) {
|
|
221
|
-
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
222
|
-
const len0 = WASM_VECTOR_LEN;
|
|
223
|
-
wasm.init_log_level(ptr0, len0);
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @returns {any}
|
|
228
|
-
*/
|
|
229
|
-
module.exports.build_info = function() {
|
|
230
|
-
const ret = wasm.build_info();
|
|
231
|
-
return takeObject(ret);
|
|
232
|
-
};
|
|
233
186
|
|
|
234
187
|
function passArray8ToWasm0(arg, malloc) {
|
|
235
188
|
const ptr = malloc(arg.length * 1) >>> 0;
|
|
@@ -263,18 +216,62 @@ module.exports.acir_write_bytes = function(acir) {
|
|
|
263
216
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
264
217
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
265
218
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
266
|
-
wasm.
|
|
219
|
+
wasm.__wbindgen_export_2(r0, r1 * 1);
|
|
267
220
|
return v1;
|
|
268
221
|
} finally {
|
|
269
222
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
270
223
|
}
|
|
271
224
|
};
|
|
272
225
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
226
|
+
/**
|
|
227
|
+
* @param {string} level
|
|
228
|
+
*/
|
|
229
|
+
module.exports.init_log_level = function(level) {
|
|
230
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
231
|
+
const len0 = WASM_VECTOR_LEN;
|
|
232
|
+
wasm.init_log_level(ptr0, len0);
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @returns {any}
|
|
237
|
+
*/
|
|
238
|
+
module.exports.build_info = function() {
|
|
239
|
+
const ret = wasm.build_info();
|
|
240
|
+
return takeObject(ret);
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @param {string} entry_point
|
|
245
|
+
* @param {boolean | undefined} contracts
|
|
246
|
+
* @param {DependencyGraph | undefined} dependency_graph
|
|
247
|
+
* @returns {CompileResult}
|
|
248
|
+
*/
|
|
249
|
+
module.exports.compile = function(entry_point, contracts, dependency_graph) {
|
|
250
|
+
try {
|
|
251
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
252
|
+
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
253
|
+
const len0 = WASM_VECTOR_LEN;
|
|
254
|
+
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph));
|
|
255
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
256
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
257
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
258
|
+
if (r2) {
|
|
259
|
+
throw takeObject(r1);
|
|
260
|
+
}
|
|
261
|
+
return takeObject(r0);
|
|
262
|
+
} finally {
|
|
263
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
264
|
+
}
|
|
276
265
|
};
|
|
277
266
|
|
|
267
|
+
function handleError(f, args) {
|
|
268
|
+
try {
|
|
269
|
+
return f.apply(this, args);
|
|
270
|
+
} catch (e) {
|
|
271
|
+
wasm.__wbindgen_export_3(addHeapObject(e));
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
278
275
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
279
276
|
takeObject(arg0);
|
|
280
277
|
};
|
|
@@ -284,6 +281,11 @@ module.exports.__wbg_constructor_bc58db5a3b38f16c = function(arg0) {
|
|
|
284
281
|
return addHeapObject(ret);
|
|
285
282
|
};
|
|
286
283
|
|
|
284
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
285
|
+
const ret = getObject(arg0) === undefined;
|
|
286
|
+
return ret;
|
|
287
|
+
};
|
|
288
|
+
|
|
287
289
|
module.exports.__wbg_constructor_e29c95824faa216c = function() {
|
|
288
290
|
const ret = new Object();
|
|
289
291
|
return addHeapObject(ret);
|
|
@@ -323,7 +325,7 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
|
323
325
|
deferred0_1 = arg1;
|
|
324
326
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
325
327
|
} finally {
|
|
326
|
-
wasm.
|
|
328
|
+
wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
|
|
327
329
|
}
|
|
328
330
|
};
|
|
329
331
|
|
package/nodejs/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function compile(a: number, b: number, c: number, d: number, e: number): void;
|
|
5
|
-
export function init_log_level(a: number, b: number): void;
|
|
6
|
-
export function build_info(): number;
|
|
7
4
|
export function acir_read_bytes(a: number, b: number): number;
|
|
8
5
|
export function acir_write_bytes(a: number, b: number): void;
|
|
6
|
+
export function init_log_level(a: number, b: number): void;
|
|
7
|
+
export function build_info(): number;
|
|
8
|
+
export function compile(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
9
|
export function __wbindgen_export_0(a: number): number;
|
|
10
10
|
export function __wbindgen_export_1(a: number, b: number, c: number): number;
|
|
11
11
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
12
|
-
export function __wbindgen_export_2(a: number): void;
|
|
13
|
-
export function __wbindgen_export_3(a: number
|
|
12
|
+
export function __wbindgen_export_2(a: number, b: number): void;
|
|
13
|
+
export function __wbindgen_export_3(a: number): void;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"collaborators": [
|
|
4
4
|
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.18.0-
|
|
6
|
+
"version": "0.18.0-6ca33a2.aztec",
|
|
7
7
|
"license": "(MIT OR Apache-2.0)",
|
|
8
8
|
"main": "./nodejs/noir_wasm.js",
|
|
9
9
|
"types": "./web/noir_wasm.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"install:from:nix": "yarn clean && yarn build:nix && cp -rL ./result/noir_wasm/nodejs ./ && cp -rL ./result/noir_wasm/web ./"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@noir-lang/source-resolver": "0.18.0-
|
|
34
|
+
"@noir-lang/source-resolver": "0.18.0-6ca33a2.aztec"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
package/web/noir_wasm.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {
|
|
5
|
-
* @
|
|
6
|
-
* @param {DependencyGraph | undefined} dependency_graph
|
|
7
|
-
* @returns {CompileResult}
|
|
4
|
+
* @param {Uint8Array} bytes
|
|
5
|
+
* @returns {any}
|
|
8
6
|
*/
|
|
9
|
-
export function
|
|
7
|
+
export function acir_read_bytes(bytes: Uint8Array): any;
|
|
8
|
+
/**
|
|
9
|
+
* @param {any} acir
|
|
10
|
+
* @returns {Uint8Array}
|
|
11
|
+
*/
|
|
12
|
+
export function acir_write_bytes(acir: any): Uint8Array;
|
|
10
13
|
/**
|
|
11
14
|
* @param {string} level
|
|
12
15
|
*/
|
|
@@ -16,15 +19,12 @@ export function init_log_level(level: string): void;
|
|
|
16
19
|
*/
|
|
17
20
|
export function build_info(): any;
|
|
18
21
|
/**
|
|
19
|
-
* @param {
|
|
20
|
-
* @
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @param {any} acir
|
|
25
|
-
* @returns {Uint8Array}
|
|
22
|
+
* @param {string} entry_point
|
|
23
|
+
* @param {boolean | undefined} contracts
|
|
24
|
+
* @param {DependencyGraph | undefined} dependency_graph
|
|
25
|
+
* @returns {CompileResult}
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
27
|
+
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;
|
|
28
28
|
|
|
29
29
|
export type Diagnostic = {
|
|
30
30
|
message: string;
|
|
@@ -86,16 +86,16 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
86
86
|
|
|
87
87
|
export interface InitOutput {
|
|
88
88
|
readonly memory: WebAssembly.Memory;
|
|
89
|
-
readonly compile: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
90
|
-
readonly init_log_level: (a: number, b: number) => void;
|
|
91
|
-
readonly build_info: () => number;
|
|
92
89
|
readonly acir_read_bytes: (a: number, b: number) => number;
|
|
93
90
|
readonly acir_write_bytes: (a: number, b: number) => void;
|
|
91
|
+
readonly init_log_level: (a: number, b: number) => void;
|
|
92
|
+
readonly build_info: () => number;
|
|
93
|
+
readonly compile: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
94
94
|
readonly __wbindgen_export_0: (a: number) => number;
|
|
95
95
|
readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
|
|
96
96
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
97
|
-
readonly __wbindgen_export_2: (a: number) => void;
|
|
98
|
-
readonly __wbindgen_export_3: (a: number
|
|
97
|
+
readonly __wbindgen_export_2: (a: number, b: number) => void;
|
|
98
|
+
readonly __wbindgen_export_3: (a: number) => void;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/web/noir_wasm.js
CHANGED
|
@@ -181,53 +181,6 @@ function debugString(val) {
|
|
|
181
181
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
182
182
|
return className;
|
|
183
183
|
}
|
|
184
|
-
/**
|
|
185
|
-
* @param {string} entry_point
|
|
186
|
-
* @param {boolean | undefined} contracts
|
|
187
|
-
* @param {DependencyGraph | undefined} dependency_graph
|
|
188
|
-
* @returns {CompileResult}
|
|
189
|
-
*/
|
|
190
|
-
export function compile(entry_point, contracts, dependency_graph) {
|
|
191
|
-
try {
|
|
192
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
193
|
-
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
194
|
-
const len0 = WASM_VECTOR_LEN;
|
|
195
|
-
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph));
|
|
196
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
197
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
198
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
199
|
-
if (r2) {
|
|
200
|
-
throw takeObject(r1);
|
|
201
|
-
}
|
|
202
|
-
return takeObject(r0);
|
|
203
|
-
} finally {
|
|
204
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function handleError(f, args) {
|
|
209
|
-
try {
|
|
210
|
-
return f.apply(this, args);
|
|
211
|
-
} catch (e) {
|
|
212
|
-
wasm.__wbindgen_export_2(addHeapObject(e));
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* @param {string} level
|
|
217
|
-
*/
|
|
218
|
-
export function init_log_level(level) {
|
|
219
|
-
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
220
|
-
const len0 = WASM_VECTOR_LEN;
|
|
221
|
-
wasm.init_log_level(ptr0, len0);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* @returns {any}
|
|
226
|
-
*/
|
|
227
|
-
export function build_info() {
|
|
228
|
-
const ret = wasm.build_info();
|
|
229
|
-
return takeObject(ret);
|
|
230
|
-
}
|
|
231
184
|
|
|
232
185
|
function passArray8ToWasm0(arg, malloc) {
|
|
233
186
|
const ptr = malloc(arg.length * 1) >>> 0;
|
|
@@ -261,13 +214,62 @@ export function acir_write_bytes(acir) {
|
|
|
261
214
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
262
215
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
263
216
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
264
|
-
wasm.
|
|
217
|
+
wasm.__wbindgen_export_2(r0, r1 * 1);
|
|
265
218
|
return v1;
|
|
266
219
|
} finally {
|
|
267
220
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
268
221
|
}
|
|
269
222
|
}
|
|
270
223
|
|
|
224
|
+
/**
|
|
225
|
+
* @param {string} level
|
|
226
|
+
*/
|
|
227
|
+
export function init_log_level(level) {
|
|
228
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
229
|
+
const len0 = WASM_VECTOR_LEN;
|
|
230
|
+
wasm.init_log_level(ptr0, len0);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @returns {any}
|
|
235
|
+
*/
|
|
236
|
+
export function build_info() {
|
|
237
|
+
const ret = wasm.build_info();
|
|
238
|
+
return takeObject(ret);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @param {string} entry_point
|
|
243
|
+
* @param {boolean | undefined} contracts
|
|
244
|
+
* @param {DependencyGraph | undefined} dependency_graph
|
|
245
|
+
* @returns {CompileResult}
|
|
246
|
+
*/
|
|
247
|
+
export function compile(entry_point, contracts, dependency_graph) {
|
|
248
|
+
try {
|
|
249
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
250
|
+
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
251
|
+
const len0 = WASM_VECTOR_LEN;
|
|
252
|
+
wasm.compile(retptr, ptr0, len0, isLikeNone(contracts) ? 0xFFFFFF : contracts ? 1 : 0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph));
|
|
253
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
254
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
255
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
256
|
+
if (r2) {
|
|
257
|
+
throw takeObject(r1);
|
|
258
|
+
}
|
|
259
|
+
return takeObject(r0);
|
|
260
|
+
} finally {
|
|
261
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
function handleError(f, args) {
|
|
266
|
+
try {
|
|
267
|
+
return f.apply(this, args);
|
|
268
|
+
} catch (e) {
|
|
269
|
+
wasm.__wbindgen_export_3(addHeapObject(e));
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
271
273
|
async function __wbg_load(module, imports) {
|
|
272
274
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
273
275
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
@@ -302,10 +304,6 @@ async function __wbg_load(module, imports) {
|
|
|
302
304
|
function __wbg_get_imports() {
|
|
303
305
|
const imports = {};
|
|
304
306
|
imports.wbg = {};
|
|
305
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
306
|
-
const ret = getObject(arg0) === undefined;
|
|
307
|
-
return ret;
|
|
308
|
-
};
|
|
309
307
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
310
308
|
takeObject(arg0);
|
|
311
309
|
};
|
|
@@ -313,6 +311,10 @@ function __wbg_get_imports() {
|
|
|
313
311
|
const ret = new Error(takeObject(arg0));
|
|
314
312
|
return addHeapObject(ret);
|
|
315
313
|
};
|
|
314
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
315
|
+
const ret = getObject(arg0) === undefined;
|
|
316
|
+
return ret;
|
|
317
|
+
};
|
|
316
318
|
imports.wbg.__wbg_constructor_e29c95824faa216c = function() {
|
|
317
319
|
const ret = new Object();
|
|
318
320
|
return addHeapObject(ret);
|
|
@@ -347,7 +349,7 @@ function __wbg_get_imports() {
|
|
|
347
349
|
deferred0_1 = arg1;
|
|
348
350
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
349
351
|
} finally {
|
|
350
|
-
wasm.
|
|
352
|
+
wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
|
|
351
353
|
}
|
|
352
354
|
};
|
|
353
355
|
imports.wbg.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
|
package/web/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function compile(a: number, b: number, c: number, d: number, e: number): void;
|
|
5
|
-
export function init_log_level(a: number, b: number): void;
|
|
6
|
-
export function build_info(): number;
|
|
7
4
|
export function acir_read_bytes(a: number, b: number): number;
|
|
8
5
|
export function acir_write_bytes(a: number, b: number): void;
|
|
6
|
+
export function init_log_level(a: number, b: number): void;
|
|
7
|
+
export function build_info(): number;
|
|
8
|
+
export function compile(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
9
|
export function __wbindgen_export_0(a: number): number;
|
|
10
10
|
export function __wbindgen_export_1(a: number, b: number, c: number): number;
|
|
11
11
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
12
|
-
export function __wbindgen_export_2(a: number): void;
|
|
13
|
-
export function __wbindgen_export_3(a: number
|
|
12
|
+
export function __wbindgen_export_2(a: number, b: number): void;
|
|
13
|
+
export function __wbindgen_export_3(a: number): void;
|