@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.
@@ -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.1/node_modules/@napi-rs/wasm-runtime/dist/runtime.js
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
- if ("message" in e) {
211
- err(message + " " + e.message);
212
- if (e.message.indexOf("RuntimeError") !== -1 || e.message.indexOf("unreachable") !== -1) {
213
- try {
214
- _this.terminateAllThreads();
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 -EAGAIN;
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 -EAGAIN;
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
- if (!_this.childThread) {
677
- var start_1 = wasi.start;
678
- if (typeof start_1 === "function") {
679
- wasi.start = function(instance) {
680
- try {
681
- return start_1.call(this, instance);
682
- } catch (err) {
683
- if (isTrapError(err)) {
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.5";
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.80.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.1"
39
+ "@napi-rs/wasm-runtime": "^1.0.3"
40
40
  }
41
41
  }
Binary file