@mirascript/wasm 0.1.49 → 0.1.50
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/lib/wasm.js +7 -7
- package/lib/wasm_bg.wasm +0 -0
- package/package.json +4 -4
package/lib/wasm.js
CHANGED
|
@@ -350,7 +350,7 @@ export function compile_buffer(script, config) {
|
|
|
350
350
|
const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export2);
|
|
351
351
|
const len0 = WASM_VECTOR_LEN;
|
|
352
352
|
_assertClass(config, Config);
|
|
353
|
-
const ret = wasm.
|
|
353
|
+
const ret = wasm.compile_buffer(ptr0, len0, config.__wbg_ptr);
|
|
354
354
|
return CompileResult.__wrap(ret);
|
|
355
355
|
}
|
|
356
356
|
|
|
@@ -361,10 +361,10 @@ export function main() {
|
|
|
361
361
|
function __wbg_get_imports() {
|
|
362
362
|
const import0 = {
|
|
363
363
|
__proto__: null,
|
|
364
|
-
|
|
364
|
+
__wbg___wbindgen_throw_39bc967c0e5a9b58: function(arg0, arg1) {
|
|
365
365
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
366
366
|
},
|
|
367
|
-
|
|
367
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
368
368
|
let deferred0_0;
|
|
369
369
|
let deferred0_1;
|
|
370
370
|
try {
|
|
@@ -375,11 +375,11 @@ function __wbg_get_imports() {
|
|
|
375
375
|
wasm.__wbindgen_export(deferred0_0, deferred0_1, 1);
|
|
376
376
|
}
|
|
377
377
|
},
|
|
378
|
-
|
|
378
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
379
379
|
const ret = new Error();
|
|
380
380
|
return addHeapObject(ret);
|
|
381
381
|
},
|
|
382
|
-
|
|
382
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
383
383
|
const ret = getObject(arg1).stack;
|
|
384
384
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
|
|
385
385
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -422,7 +422,7 @@ function _assertClass(instance, klass) {
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
function dropObject(idx) {
|
|
425
|
-
if (idx <
|
|
425
|
+
if (idx < 1028) return;
|
|
426
426
|
heap[idx] = heap_next;
|
|
427
427
|
heap_next = idx;
|
|
428
428
|
}
|
|
@@ -468,7 +468,7 @@ function getUint8ArrayMemory0() {
|
|
|
468
468
|
|
|
469
469
|
function getObject(idx) { return heap[idx]; }
|
|
470
470
|
|
|
471
|
-
let heap = new Array(
|
|
471
|
+
let heap = new Array(1024).fill(undefined);
|
|
472
472
|
heap.push(undefined, null, true, false);
|
|
473
473
|
|
|
474
474
|
let heap_next = heap.length;
|
package/lib/wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirascript/wasm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.50",
|
|
4
4
|
"author": "CloudPSS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "MiraScript compiler for WebAssembly",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^25.
|
|
20
|
-
"nodemon": "^3.1.
|
|
21
|
-
"@mirascript/constants": "~0.1.
|
|
19
|
+
"@types/node": "^25.3.1",
|
|
20
|
+
"nodemon": "^3.1.14",
|
|
21
|
+
"@mirascript/constants": "~0.1.50"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"wasm": "wasm-pack build --target web --out-dir ../../packages/wasm/lib --no-pack ../../crates/wasm",
|