@raviqqe/stak 0.10.40 → 0.11.0

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/README.md CHANGED
@@ -160,7 +160,7 @@ fn run_scheme(module: &UniversalModule) -> Result<(), EngineError> {
160
160
  ("person-throw-pie", r#fn(Person::throw_pie)),
161
161
  ];
162
162
  // Initialize the engine.
163
- let mut engine = Engine::new(&mut heap, &mut functions)?;
163
+ let mut engine = Engine::new(heap.as_mut(), &mut functions)?;
164
164
 
165
165
  // Finally, run the module!
166
166
  engine.run(module)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@raviqqe/stak",
3
3
  "type": "module",
4
4
  "description": "Stak Scheme in WebAssembly",
5
- "version": "0.10.40",
5
+ "version": "0.11.0",
6
6
  "license": "SEE LICENSE IN ../LICENSE",
7
7
  "repository": {
8
8
  "type": "git",
package/stak_wasm.d.ts CHANGED
@@ -33,8 +33,8 @@ export interface InitOutput {
33
33
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
34
34
  readonly __externref_table_dealloc: (a: number) => void;
35
35
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
36
- readonly closure33_externref_shim: (a: number, b: number, c: any) => void;
37
- readonly closure55_externref_shim: (a: number, b: number, c: any, d: any) => void;
36
+ readonly closure17_externref_shim: (a: number, b: number, c: any) => void;
37
+ readonly closure39_externref_shim: (a: number, b: number, c: any, d: any) => void;
38
38
  readonly __wbindgen_start: () => void;
39
39
  }
40
40
 
package/stak_wasm.js CHANGED
@@ -283,11 +283,11 @@ export function run(source, input, heap_size) {
283
283
  }
284
284
 
285
285
  function __wbg_adapter_24(arg0, arg1, arg2) {
286
- wasm.closure33_externref_shim(arg0, arg1, arg2);
286
+ wasm.closure17_externref_shim(arg0, arg1, arg2);
287
287
  }
288
288
 
289
289
  function __wbg_adapter_45(arg0, arg1, arg2, arg3) {
290
- wasm.closure55_externref_shim(arg0, arg1, arg2, arg3);
290
+ wasm.closure39_externref_shim(arg0, arg1, arg2, arg3);
291
291
  }
292
292
 
293
293
  async function __wbg_load(module, imports) {
@@ -361,7 +361,7 @@ function __wbg_get_imports() {
361
361
  const ret = arg0.queueMicrotask;
362
362
  return ret;
363
363
  };
364
- imports.wbg.__wbg_readstdin_c669ad030ed9f1a0 = function() {
364
+ imports.wbg.__wbg_readstdin_539fa8769d98d5f4 = function() {
365
365
  const ret = read_stdin();
366
366
  return ret;
367
367
  };
@@ -393,11 +393,11 @@ function __wbg_get_imports() {
393
393
  const ret = arg0.then(arg1, arg2);
394
394
  return ret;
395
395
  };
396
- imports.wbg.__wbg_writestderr_cc8152431eadb67d = function(arg0) {
396
+ imports.wbg.__wbg_writestderr_f657e384e6a21793 = function(arg0) {
397
397
  const ret = write_stderr(arg0);
398
398
  return ret;
399
399
  };
400
- imports.wbg.__wbg_writestdout_40858c8d7f600fb9 = function(arg0) {
400
+ imports.wbg.__wbg_writestdout_fb23fd6d83c1685a = function(arg0) {
401
401
  const ret = write_stdout(arg0);
402
402
  return ret;
403
403
  };
@@ -410,8 +410,8 @@ function __wbg_get_imports() {
410
410
  const ret = false;
411
411
  return ret;
412
412
  };
413
- imports.wbg.__wbindgen_closure_wrapper83 = function(arg0, arg1, arg2) {
414
- const ret = makeMutClosure(arg0, arg1, 34, __wbg_adapter_24);
413
+ imports.wbg.__wbindgen_closure_wrapper73 = function(arg0, arg1, arg2) {
414
+ const ret = makeMutClosure(arg0, arg1, 18, __wbg_adapter_24);
415
415
  return ret;
416
416
  };
417
417
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
package/stak_wasm_bg.wasm CHANGED
Binary file