@oxc-parser/binding-wasm32-wasi 0.80.0 → 0.82.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/browser-bundle.mjs +20 -26
- package/package.json +2 -2
- package/parser.wasm32-wasi.wasm +0 -0
package/browser-bundle.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
5
5
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.
|
|
8
|
+
// ../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.0/node_modules/@napi-rs/wasm-runtime/dist/runtime.js
|
|
9
9
|
var _WebAssembly$2 = typeof WebAssembly !== "undefined" ? WebAssembly : typeof WXWebAssembly !== "undefined" ? WXWebAssembly : void 0;
|
|
10
10
|
var ENVIRONMENT_IS_NODE = false;
|
|
11
11
|
function getPostMessage(options) {
|
|
@@ -207,16 +207,12 @@ var ThreadManager = /* @__PURE__ */ function() {
|
|
|
207
207
|
if (worker.__emnapi_tid !== void 0) {
|
|
208
208
|
message = "worker (tid = " + worker.__emnapi_tid + ") sent an error!";
|
|
209
209
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
} catch (_) {
|
|
216
|
-
}
|
|
210
|
+
err(message + " " + e.message);
|
|
211
|
+
if (e.message.indexOf("RuntimeError") !== -1 || e.message.indexOf("unreachable") !== -1) {
|
|
212
|
+
try {
|
|
213
|
+
_this.terminateAllThreads();
|
|
214
|
+
} catch (_) {
|
|
217
215
|
}
|
|
218
|
-
} else {
|
|
219
|
-
err(message);
|
|
220
216
|
}
|
|
221
217
|
reject(e);
|
|
222
218
|
throw e;
|
|
@@ -489,7 +485,7 @@ var WASIThreads = /* @__PURE__ */ function() {
|
|
|
489
485
|
Atomics.notify(struct_1, 1);
|
|
490
486
|
return 1;
|
|
491
487
|
} else {
|
|
492
|
-
return -
|
|
488
|
+
return -6;
|
|
493
489
|
}
|
|
494
490
|
}
|
|
495
491
|
if (!isNewABI) {
|
|
@@ -573,7 +569,7 @@ var WASIThreads = /* @__PURE__ */ function() {
|
|
|
573
569
|
return 1;
|
|
574
570
|
}
|
|
575
571
|
free(errorOrTid);
|
|
576
|
-
return -
|
|
572
|
+
return -6;
|
|
577
573
|
}
|
|
578
574
|
Atomics.store(struct, 0, 0);
|
|
579
575
|
Atomics.store(struct, 1, tid);
|
|
@@ -673,20 +669,18 @@ function patchWasiInstance(wasiThreads, wasi) {
|
|
|
673
669
|
return proc_exit_1.call(this, code);
|
|
674
670
|
};
|
|
675
671
|
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
_this.terminateAllThreads();
|
|
685
|
-
}
|
|
686
|
-
throw err;
|
|
672
|
+
var start = wasi.start;
|
|
673
|
+
if (typeof start === "function") {
|
|
674
|
+
wasi.start = function(instance) {
|
|
675
|
+
try {
|
|
676
|
+
return start.call(this, instance);
|
|
677
|
+
} catch (err) {
|
|
678
|
+
if (isTrapError(err)) {
|
|
679
|
+
_this.terminateAllThreads();
|
|
687
680
|
}
|
|
688
|
-
|
|
689
|
-
|
|
681
|
+
throw err;
|
|
682
|
+
}
|
|
683
|
+
};
|
|
690
684
|
}
|
|
691
685
|
patched.add(wasi);
|
|
692
686
|
}
|
|
@@ -8855,7 +8849,7 @@ var _Buffer = typeof Buffer === "function" ? Buffer : /* @__PURE__ */ function()
|
|
|
8855
8849
|
}
|
|
8856
8850
|
return void 0;
|
|
8857
8851
|
}();
|
|
8858
|
-
var version = "1.4.
|
|
8852
|
+
var version = "1.4.3";
|
|
8859
8853
|
var NODE_API_SUPPORTED_VERSION_MAX = 10;
|
|
8860
8854
|
var NAPI_VERSION_EXPERIMENTAL = 2147483647;
|
|
8861
8855
|
var NODE_API_DEFAULT_MODULE_API_VERSION = 8;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxc-parser/binding-wasm32-wasi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.82.0",
|
|
4
4
|
"cpu": [
|
|
5
5
|
"wasm32"
|
|
6
6
|
],
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
},
|
|
37
37
|
"browser": "parser.wasi-browser.js",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@napi-rs/wasm-runtime": "^1.0.
|
|
39
|
+
"@napi-rs/wasm-runtime": "^1.0.3"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/parser.wasm32-wasi.wasm
CHANGED
|
Binary file
|