@noir-lang/noir_wasm 0.30.0-86fd0ac.nightly → 0.30.0-b8ba9e6.nightly

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
package/dist/node/main.js CHANGED
@@ -191,22 +191,6 @@ function debugString(val) {
191
191
  // TODO we could test for more things here, like `Set`s and `Map`s.
192
192
  return className;
193
193
  }
194
- /**
195
- * @param {string} level
196
- */
197
- module.exports.init_log_level = function(level) {
198
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
199
- const len0 = WASM_VECTOR_LEN;
200
- wasm.init_log_level(ptr0, len0);
201
- };
202
-
203
- /**
204
- * @returns {any}
205
- */
206
- module.exports.build_info = function() {
207
- const ret = wasm.build_info();
208
- return takeObject(ret);
209
- };
210
194
 
211
195
  function _assertClass(instance, klass) {
212
196
  if (!(instance instanceof klass)) {
@@ -215,19 +199,21 @@ function _assertClass(instance, klass) {
215
199
  return instance.ptr;
216
200
  }
217
201
  /**
202
+ * This is a method that exposes the same API as `compile`
203
+ * But uses the Context based APi internally
218
204
  * @param {string} entry_point
219
205
  * @param {DependencyGraph | undefined} dependency_graph
220
206
  * @param {PathToFileSourceMap} file_source_map
221
207
  * @returns {ProgramCompileResult}
222
208
  */
223
- module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
209
+ module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
224
210
  try {
225
211
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
226
212
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
227
213
  const len0 = WASM_VECTOR_LEN;
228
214
  _assertClass(file_source_map, PathToFileSourceMap);
229
215
  var ptr1 = file_source_map.__destroy_into_raw();
230
- wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
216
+ wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
231
217
  var r0 = getInt32Memory0()[retptr / 4 + 0];
232
218
  var r1 = getInt32Memory0()[retptr / 4 + 1];
233
219
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -241,19 +227,21 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
241
227
  };
242
228
 
243
229
  /**
230
+ * This is a method that exposes the same API as `compile`
231
+ * But uses the Context based APi internally
244
232
  * @param {string} entry_point
245
233
  * @param {DependencyGraph | undefined} dependency_graph
246
234
  * @param {PathToFileSourceMap} file_source_map
247
235
  * @returns {ContractCompileResult}
248
236
  */
249
- module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
237
+ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
250
238
  try {
251
239
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
252
240
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
253
241
  const len0 = WASM_VECTOR_LEN;
254
242
  _assertClass(file_source_map, PathToFileSourceMap);
255
243
  var ptr1 = file_source_map.__destroy_into_raw();
256
- wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
244
+ wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
257
245
  var r0 = getInt32Memory0()[retptr / 4 + 0];
258
246
  var r1 = getInt32Memory0()[retptr / 4 + 1];
259
247
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -267,21 +255,19 @@ module.exports.compile_contract = function(entry_point, dependency_graph, file_s
267
255
  };
268
256
 
269
257
  /**
270
- * This is a method that exposes the same API as `compile`
271
- * But uses the Context based APi internally
272
258
  * @param {string} entry_point
273
259
  * @param {DependencyGraph | undefined} dependency_graph
274
260
  * @param {PathToFileSourceMap} file_source_map
275
261
  * @returns {ProgramCompileResult}
276
262
  */
277
- module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
263
+ module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
278
264
  try {
279
265
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
280
266
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
281
267
  const len0 = WASM_VECTOR_LEN;
282
268
  _assertClass(file_source_map, PathToFileSourceMap);
283
269
  var ptr1 = file_source_map.__destroy_into_raw();
284
- wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
270
+ wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
285
271
  var r0 = getInt32Memory0()[retptr / 4 + 0];
286
272
  var r1 = getInt32Memory0()[retptr / 4 + 1];
287
273
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -295,21 +281,19 @@ module.exports.compile_program_ = function(entry_point, dependency_graph, file_s
295
281
  };
296
282
 
297
283
  /**
298
- * This is a method that exposes the same API as `compile`
299
- * But uses the Context based APi internally
300
284
  * @param {string} entry_point
301
285
  * @param {DependencyGraph | undefined} dependency_graph
302
286
  * @param {PathToFileSourceMap} file_source_map
303
287
  * @returns {ContractCompileResult}
304
288
  */
305
- module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
289
+ module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
306
290
  try {
307
291
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
308
292
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
309
293
  const len0 = WASM_VECTOR_LEN;
310
294
  _assertClass(file_source_map, PathToFileSourceMap);
311
295
  var ptr1 = file_source_map.__destroy_into_raw();
312
- wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
296
+ wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
313
297
  var r0 = getInt32Memory0()[retptr / 4 + 0];
314
298
  var r1 = getInt32Memory0()[retptr / 4 + 1];
315
299
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -322,6 +306,23 @@ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_
322
306
  }
323
307
  };
324
308
 
309
+ /**
310
+ * @param {string} level
311
+ */
312
+ module.exports.init_log_level = function(level) {
313
+ const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
314
+ const len0 = WASM_VECTOR_LEN;
315
+ wasm.init_log_level(ptr0, len0);
316
+ };
317
+
318
+ /**
319
+ * @returns {any}
320
+ */
321
+ module.exports.build_info = function() {
322
+ const ret = wasm.build_info();
323
+ return takeObject(ret);
324
+ };
325
+
325
326
  function handleError(f, args) {
326
327
  try {
327
328
  return f.apply(this, args);
@@ -518,22 +519,22 @@ class PathToFileSourceMap {
518
519
  }
519
520
  module.exports.PathToFileSourceMap = PathToFileSourceMap;
520
521
 
521
- module.exports.__wbindgen_is_undefined = function(arg0) {
522
- const ret = getObject(arg0) === undefined;
523
- return ret;
524
- };
525
-
526
522
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
527
523
  takeObject(arg0);
528
524
  };
529
525
 
530
- module.exports.__wbg_constructor_400faf0d85826e9b = function(arg0) {
531
- const ret = new Error(takeObject(arg0));
526
+ module.exports.__wbg_constructor_f5d3b6dbabde0560 = function() {
527
+ const ret = new Object();
532
528
  return addHeapObject(ret);
533
529
  };
534
530
 
535
- module.exports.__wbg_constructor_f5d3b6dbabde0560 = function() {
536
- const ret = new Object();
531
+ module.exports.__wbindgen_is_undefined = function(arg0) {
532
+ const ret = getObject(arg0) === undefined;
533
+ return ret;
534
+ };
535
+
536
+ module.exports.__wbg_constructor_400faf0d85826e9b = function(arg0) {
537
+ const ret = new Error(takeObject(arg0));
537
538
  return addHeapObject(ret);
538
539
  };
539
540