@raviqqe/stak 0.11.1 → 0.11.3
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 +1 -1
- package/package.json +1 -1
- package/stak_wasm.d.ts +2 -2
- package/stak_wasm.js +8 -8
- package/stak_wasm_bg.wasm +0 -0
package/README.md
CHANGED
package/package.json
CHANGED
package/stak_wasm.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export function repl(heap_size: number): Promise<void>;
|
|
|
9
9
|
*/
|
|
10
10
|
export function compile(source: string): Uint8Array;
|
|
11
11
|
/**
|
|
12
|
-
* Interprets
|
|
12
|
+
* Interprets bytecode with standard input and returns its standard output.
|
|
13
13
|
*/
|
|
14
|
-
export function interpret(
|
|
14
|
+
export function interpret(bytecode: Uint8Array, input: Uint8Array, heap_size: number): Uint8Array;
|
|
15
15
|
/**
|
|
16
16
|
* Runs a Scheme script with standard input and returns its standard output.
|
|
17
17
|
*/
|
package/stak_wasm.js
CHANGED
|
@@ -241,14 +241,14 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
241
241
|
return ptr;
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
|
-
* Interprets
|
|
245
|
-
* @param {Uint8Array}
|
|
244
|
+
* Interprets bytecode with standard input and returns its standard output.
|
|
245
|
+
* @param {Uint8Array} bytecode
|
|
246
246
|
* @param {Uint8Array} input
|
|
247
247
|
* @param {number} heap_size
|
|
248
248
|
* @returns {Uint8Array}
|
|
249
249
|
*/
|
|
250
|
-
export function interpret(
|
|
251
|
-
const ptr0 = passArray8ToWasm0(
|
|
250
|
+
export function interpret(bytecode, input, heap_size) {
|
|
251
|
+
const ptr0 = passArray8ToWasm0(bytecode, wasm.__wbindgen_malloc);
|
|
252
252
|
const len0 = WASM_VECTOR_LEN;
|
|
253
253
|
const ptr1 = passArray8ToWasm0(input, wasm.__wbindgen_malloc);
|
|
254
254
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -361,7 +361,7 @@ function __wbg_get_imports() {
|
|
|
361
361
|
const ret = arg0.queueMicrotask;
|
|
362
362
|
return ret;
|
|
363
363
|
};
|
|
364
|
-
imports.wbg.
|
|
364
|
+
imports.wbg.__wbg_readstdin_a30a15047fece43f = 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.
|
|
396
|
+
imports.wbg.__wbg_writestderr_c1f4ba2bce11bc25 = function(arg0) {
|
|
397
397
|
const ret = write_stderr(arg0);
|
|
398
398
|
return ret;
|
|
399
399
|
};
|
|
400
|
-
imports.wbg.
|
|
400
|
+
imports.wbg.__wbg_writestdout_0f804aca16513d72 = function(arg0) {
|
|
401
401
|
const ret = write_stdout(arg0);
|
|
402
402
|
return ret;
|
|
403
403
|
};
|
|
@@ -410,7 +410,7 @@ function __wbg_get_imports() {
|
|
|
410
410
|
const ret = false;
|
|
411
411
|
return ret;
|
|
412
412
|
};
|
|
413
|
-
imports.wbg.
|
|
413
|
+
imports.wbg.__wbindgen_closure_wrapper84 = function(arg0, arg1, arg2) {
|
|
414
414
|
const ret = makeMutClosure(arg0, arg1, 34, __wbg_adapter_24);
|
|
415
415
|
return ret;
|
|
416
416
|
};
|
package/stak_wasm_bg.wasm
CHANGED
|
Binary file
|