@oxc-parser/binding-wasm32-wasi 0.133.0 → 0.134.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.js CHANGED
@@ -992,7 +992,7 @@ function createNapiModule(options) {
992
992
  function _emnapi_close_handle_scope(_scope) {
993
993
  return emnapiCtx.closeScope();
994
994
  }
995
- var utilMod = /* @__PURE__ */ Object.freeze({
995
+ var utilMod = /*#__PURE__*/ Object.freeze({
996
996
  __proto__: null,
997
997
  $emnapiSetValueI64,
998
998
  _emnapi_call_finalizer,
@@ -1098,7 +1098,7 @@ function createNapiModule(options) {
1098
1098
  payload: {}
1099
1099
  } });
1100
1100
  }
1101
- var asyncMod = /* @__PURE__ */ Object.freeze({
1101
+ var asyncMod = /*#__PURE__*/ Object.freeze({
1102
1102
  __proto__: null,
1103
1103
  _emnapi_after_uvthreadpool_ready,
1104
1104
  _emnapi_async_send_js,
@@ -1118,7 +1118,7 @@ function createNapiModule(options) {
1118
1118
  else $emnapiSetValueI64(adjusted_value, Number(adjusted_memory));
1119
1119
  return envObject.clearLastError();
1120
1120
  }
1121
- var memoryMod = /* @__PURE__ */ Object.freeze({
1121
+ var memoryMod = /*#__PURE__*/ Object.freeze({
1122
1122
  __proto__: null,
1123
1123
  napi_adjust_external_memory
1124
1124
  });
@@ -1394,7 +1394,7 @@ function createNapiModule(options) {
1394
1394
  function _emnapi_env_check_gc_access(env) {
1395
1395
  emnapiCtx.envStore.get(env).checkGCAccess();
1396
1396
  }
1397
- var nodeMod = /* @__PURE__ */ Object.freeze({
1397
+ var nodeMod = /*#__PURE__*/ Object.freeze({
1398
1398
  __proto__: null,
1399
1399
  _emnapi_async_destroy_js,
1400
1400
  _emnapi_async_init_js,
@@ -2571,7 +2571,7 @@ function createNapiModule(options) {
2571
2571
  } else throw new Error("startThread is only available in child threads");
2572
2572
  }
2573
2573
  napiModule.initWorker = initWorker;
2574
- var asyncWorkMod = /* @__PURE__ */ Object.freeze({
2574
+ var asyncWorkMod = /*#__PURE__*/ Object.freeze({
2575
2575
  __proto__: null,
2576
2576
  _emnapi_async_worker,
2577
2577
  _emnapi_spawn_worker,
@@ -3431,7 +3431,7 @@ function createNapiModule(options) {
3431
3431
  new DataView(wasmMemory.buffer).setUint32(result, v, true);
3432
3432
  return envObject.clearLastError();
3433
3433
  }
3434
- var convert2cMod = /* @__PURE__ */ Object.freeze({
3434
+ var convert2cMod = /*#__PURE__*/ Object.freeze({
3435
3435
  __proto__: null,
3436
3436
  napi_get_array_length,
3437
3437
  napi_get_arraybuffer_info,
@@ -3647,7 +3647,7 @@ function createNapiModule(options) {
3647
3647
  return envObject.setLastError(10);
3648
3648
  }
3649
3649
  }
3650
- var convert2napiMod = /* @__PURE__ */ Object.freeze({
3650
+ var convert2napiMod = /*#__PURE__*/ Object.freeze({
3651
3651
  __proto__: null,
3652
3652
  napi_create_bigint_int64,
3653
3653
  napi_create_bigint_uint64,
@@ -4003,7 +4003,7 @@ function createNapiModule(options) {
4003
4003
  envObject.enqueueFinalizer(emnapiCtx.createTrackedFinalizer(envObject, finalize_cb, finalize_data, finalize_hint));
4004
4004
  return envObject.clearLastError();
4005
4005
  }
4006
- var wrapMod = /* @__PURE__ */ Object.freeze({
4006
+ var wrapMod = /*#__PURE__*/ Object.freeze({
4007
4007
  __proto__: null,
4008
4008
  napi_add_finalizer,
4009
4009
  napi_check_object_type_tag,
@@ -4343,7 +4343,7 @@ function createNapiModule(options) {
4343
4343
  HEAP_DATA_VIEW.setUint32(version + 8, versions[2], true);
4344
4344
  return envObject.clearLastError();
4345
4345
  }
4346
- var emnapiMod = /* @__PURE__ */ Object.freeze({
4346
+ var emnapiMod = /*#__PURE__*/ Object.freeze({
4347
4347
  __proto__: null,
4348
4348
  $emnapiGetMemoryAddress,
4349
4349
  $emnapiSyncMemory,
@@ -4887,7 +4887,7 @@ function createNapiModule(options) {
4887
4887
  new DataView(wasmMemory.buffer).setUint32(result, value, true);
4888
4888
  return envObject.clearLastError();
4889
4889
  }
4890
- var createMod = /* @__PURE__ */ Object.freeze({
4890
+ var createMod = /*#__PURE__*/ Object.freeze({
4891
4891
  __proto__: null,
4892
4892
  napi_create_array,
4893
4893
  napi_create_array_with_length,
@@ -4948,7 +4948,7 @@ function createNapiModule(options) {
4948
4948
  new DataView(wasmMemory.buffer).setUint32(result, 1, true);
4949
4949
  return envObject.clearLastError();
4950
4950
  }
4951
- var globalMod = /* @__PURE__ */ Object.freeze({
4951
+ var globalMod = /*#__PURE__*/ Object.freeze({
4952
4952
  __proto__: null,
4953
4953
  napi_get_boolean,
4954
4954
  napi_get_global,
@@ -4975,7 +4975,7 @@ function createNapiModule(options) {
4975
4975
  new DataView(wasmMemory.buffer).setUint32(data, value, true);
4976
4976
  return envObject.clearLastError();
4977
4977
  }
4978
- var envMod = /* @__PURE__ */ Object.freeze({
4978
+ var envMod = /*#__PURE__*/ Object.freeze({
4979
4979
  __proto__: null,
4980
4980
  napi_get_instance_data,
4981
4981
  napi_set_instance_data
@@ -5239,7 +5239,7 @@ function createNapiModule(options) {
5239
5239
  return envObject.setLastError(10);
5240
5240
  }
5241
5241
  }
5242
- var errorMod = /* @__PURE__ */ Object.freeze({
5242
+ var errorMod = /*#__PURE__*/ Object.freeze({
5243
5243
  __proto__: null,
5244
5244
  _emnapi_get_last_error_info,
5245
5245
  napi_create_error,
@@ -5424,7 +5424,7 @@ function createNapiModule(options) {
5424
5424
  new DataView(wasmMemory.buffer).setUint32(result, value, true);
5425
5425
  return envObject.clearLastError();
5426
5426
  }
5427
- var functionMod = /* @__PURE__ */ Object.freeze({
5427
+ var functionMod = /*#__PURE__*/ Object.freeze({
5428
5428
  __proto__: null,
5429
5429
  _emnapi_create_function,
5430
5430
  napi_call_function,
@@ -5586,7 +5586,7 @@ function createNapiModule(options) {
5586
5586
  function _emnapi_env_unref(env) {
5587
5587
  emnapiCtx.envStore.get(env).unref();
5588
5588
  }
5589
- var lifeMod = /* @__PURE__ */ Object.freeze({
5589
+ var lifeMod = /*#__PURE__*/ Object.freeze({
5590
5590
  __proto__: null,
5591
5591
  _emnapi_env_ref,
5592
5592
  _emnapi_env_unref,
@@ -5609,7 +5609,7 @@ function createNapiModule(options) {
5609
5609
  if (!buf) return emnapiString.lengthBytesUTF8(filename);
5610
5610
  return emnapiString.stringToUTF8(filename, buf, len);
5611
5611
  }
5612
- var miscellaneousMod = /* @__PURE__ */ Object.freeze({
5612
+ var miscellaneousMod = /*#__PURE__*/ Object.freeze({
5613
5613
  __proto__: null,
5614
5614
  _emnapi_get_filename
5615
5615
  });
@@ -5692,7 +5692,7 @@ function createNapiModule(options) {
5692
5692
  new DataView(wasmMemory.buffer).setInt8(is_promise, r, true);
5693
5693
  return envObject.clearLastError();
5694
5694
  }
5695
- var promiseMod = /* @__PURE__ */ Object.freeze({
5695
+ var promiseMod = /*#__PURE__*/ Object.freeze({
5696
5696
  __proto__: null,
5697
5697
  napi_create_promise,
5698
5698
  napi_is_promise,
@@ -6225,7 +6225,7 @@ function createNapiModule(options) {
6225
6225
  return envObject.setLastError(10);
6226
6226
  }
6227
6227
  }
6228
- var propertyMod = /* @__PURE__ */ Object.freeze({
6228
+ var propertyMod = /*#__PURE__*/ Object.freeze({
6229
6229
  __proto__: null,
6230
6230
  napi_define_properties,
6231
6231
  napi_delete_element,
@@ -6271,7 +6271,7 @@ function createNapiModule(options) {
6271
6271
  }
6272
6272
  return status;
6273
6273
  }
6274
- var scriptMod = /* @__PURE__ */ Object.freeze({
6274
+ var scriptMod = /*#__PURE__*/ Object.freeze({
6275
6275
  __proto__: null,
6276
6276
  napi_run_script
6277
6277
  });
@@ -6590,7 +6590,7 @@ function createNapiModule(options) {
6590
6590
  return envObject.setLastError(10);
6591
6591
  }
6592
6592
  }
6593
- var valueOperationMod = /* @__PURE__ */ Object.freeze({
6593
+ var valueOperationMod = /*#__PURE__*/ Object.freeze({
6594
6594
  __proto__: null,
6595
6595
  napi_coerce_to_bool,
6596
6596
  napi_coerce_to_number,
@@ -6618,7 +6618,7 @@ function createNapiModule(options) {
6618
6618
  new DataView(wasmMemory.buffer).setUint32(result, 10, true);
6619
6619
  return envObject.clearLastError();
6620
6620
  }
6621
- var versionMod = /* @__PURE__ */ Object.freeze({
6621
+ var versionMod = /*#__PURE__*/ Object.freeze({
6622
6622
  __proto__: null,
6623
6623
  napi_get_version
6624
6624
  });
@@ -6794,7 +6794,7 @@ function getExternalValue(external) {
6794
6794
  if (!isExternal(external)) throw new TypeError("not external");
6795
6795
  return externalValue.get(external);
6796
6796
  }
6797
- var supportNewFunction = /* @__PURE__ */ (function() {
6797
+ var supportNewFunction = /*#__PURE__*/ (function() {
6798
6798
  var f;
6799
6799
  try {
6800
6800
  f = new Function();
@@ -6803,7 +6803,7 @@ var supportNewFunction = /* @__PURE__ */ (function() {
6803
6803
  }
6804
6804
  return typeof f === "function";
6805
6805
  })();
6806
- var _global = /* @__PURE__ */ (function() {
6806
+ var _global = /*#__PURE__*/ (function() {
6807
6807
  if (typeof globalThis !== "undefined") return globalThis;
6808
6808
  var g = (function() {
6809
6809
  return this;
@@ -6849,7 +6849,7 @@ var TryCatch = /* @__PURE__ */ function() {
6849
6849
  };
6850
6850
  return TryCatch;
6851
6851
  }();
6852
- var canSetFunctionName = /* @__PURE__ */ (function() {
6852
+ var canSetFunctionName = /*#__PURE__*/ (function() {
6853
6853
  var _a;
6854
6854
  try {
6855
6855
  return Boolean((_a = Object.getOwnPropertyDescriptor(Function.prototype, "name")) === null || _a === void 0 ? void 0 : _a.configurable);
@@ -6859,7 +6859,7 @@ var canSetFunctionName = /* @__PURE__ */ (function() {
6859
6859
  })();
6860
6860
  var supportReflect = typeof Reflect === "object";
6861
6861
  var supportFinalizer = typeof FinalizationRegistry !== "undefined" && typeof WeakRef !== "undefined";
6862
- var supportWeakSymbol = /* @__PURE__ */ (function() {
6862
+ var supportWeakSymbol = /*#__PURE__*/ (function() {
6863
6863
  try {
6864
6864
  var sym = Symbol();
6865
6865
  new WeakRef(sym);
@@ -6870,7 +6870,7 @@ var supportWeakSymbol = /* @__PURE__ */ (function() {
6870
6870
  return true;
6871
6871
  })();
6872
6872
  var supportBigInt = typeof BigInt !== "undefined";
6873
- var _require = /* @__PURE__ */ (function() {
6873
+ var _require = /*#__PURE__*/ (function() {
6874
6874
  var nativeRequire;
6875
6875
  if (typeof __webpack_public_path__ !== "undefined") nativeRequire = (function() {
6876
6876
  return typeof __non_webpack_require__ !== "undefined" ? __non_webpack_require__ : void 0;
@@ -6880,7 +6880,7 @@ var _require = /* @__PURE__ */ (function() {
6880
6880
  })();
6881
6881
  return nativeRequire;
6882
6882
  })();
6883
- var _MessageChannel = typeof MessageChannel === "function" ? MessageChannel : /* @__PURE__ */ (function() {
6883
+ var _MessageChannel = typeof MessageChannel === "function" ? MessageChannel : /*#__PURE__*/ (function() {
6884
6884
  try {
6885
6885
  return _require("worker_threads").MessageChannel;
6886
6886
  } catch (_) {}
@@ -6897,7 +6897,7 @@ var _setImmediate = typeof setImmediate === "function" ? setImmediate : function
6897
6897
  channel_1.port2.postMessage(null);
6898
6898
  } else setTimeout(callback, 0);
6899
6899
  };
6900
- var _Buffer = typeof Buffer === "function" ? Buffer : /* @__PURE__ */ (function() {
6900
+ var _Buffer = typeof Buffer === "function" ? Buffer : /*#__PURE__*/ (function() {
6901
6901
  try {
6902
6902
  return _require("buffer").Buffer;
6903
6903
  } catch (_) {}
@@ -8121,36 +8121,36 @@ function resolve(...args) {
8121
8121
  return resolvedPath.length > 0 ? resolvedPath : ".";
8122
8122
  }
8123
8123
  const WasiRights = {
8124
- FD_DATASYNC: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(0),
8125
- FD_READ: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(1),
8126
- FD_SEEK: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(2),
8127
- FD_FDSTAT_SET_FLAGS: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(3),
8128
- FD_SYNC: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(4),
8129
- FD_TELL: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(5),
8130
- FD_WRITE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(6),
8131
- FD_ADVISE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(7),
8132
- FD_ALLOCATE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(8),
8133
- PATH_CREATE_DIRECTORY: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(9),
8134
- PATH_CREATE_FILE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(10),
8135
- PATH_LINK_SOURCE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(11),
8136
- PATH_LINK_TARGET: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(12),
8137
- PATH_OPEN: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(13),
8138
- FD_READDIR: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(14),
8139
- PATH_READLINK: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(15),
8140
- PATH_RENAME_SOURCE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(16),
8141
- PATH_RENAME_TARGET: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(17),
8142
- PATH_FILESTAT_GET: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(18),
8143
- PATH_FILESTAT_SET_SIZE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(19),
8144
- PATH_FILESTAT_SET_TIMES: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(20),
8145
- FD_FILESTAT_GET: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(21),
8146
- FD_FILESTAT_SET_SIZE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(22),
8147
- FD_FILESTAT_SET_TIMES: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(23),
8148
- PATH_SYMLINK: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(24),
8149
- PATH_REMOVE_DIRECTORY: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(25),
8150
- PATH_UNLINK_FILE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(26),
8151
- POLL_FD_READWRITE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(27),
8152
- SOCK_SHUTDOWN: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(28),
8153
- SOCK_ACCEPT: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(29)
8124
+ FD_DATASYNC: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(0),
8125
+ FD_READ: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(1),
8126
+ FD_SEEK: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(2),
8127
+ FD_FDSTAT_SET_FLAGS: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(3),
8128
+ FD_SYNC: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(4),
8129
+ FD_TELL: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(5),
8130
+ FD_WRITE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(6),
8131
+ FD_ADVISE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(7),
8132
+ FD_ALLOCATE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(8),
8133
+ PATH_CREATE_DIRECTORY: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(9),
8134
+ PATH_CREATE_FILE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(10),
8135
+ PATH_LINK_SOURCE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(11),
8136
+ PATH_LINK_TARGET: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(12),
8137
+ PATH_OPEN: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(13),
8138
+ FD_READDIR: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(14),
8139
+ PATH_READLINK: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(15),
8140
+ PATH_RENAME_SOURCE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(16),
8141
+ PATH_RENAME_TARGET: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(17),
8142
+ PATH_FILESTAT_GET: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(18),
8143
+ PATH_FILESTAT_SET_SIZE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(19),
8144
+ PATH_FILESTAT_SET_TIMES: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(20),
8145
+ FD_FILESTAT_GET: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(21),
8146
+ FD_FILESTAT_SET_SIZE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(22),
8147
+ FD_FILESTAT_SET_TIMES: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(23),
8148
+ PATH_SYMLINK: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(24),
8149
+ PATH_REMOVE_DIRECTORY: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(25),
8150
+ PATH_UNLINK_FILE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(26),
8151
+ POLL_FD_READWRITE: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(27),
8152
+ SOCK_SHUTDOWN: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(28),
8153
+ SOCK_ACCEPT: /*#__PURE__*/ BigInt(1) << /*#__PURE__*/ BigInt(29)
8154
8154
  };
8155
8155
  function strerror(errno) {
8156
8156
  switch (errno) {
@@ -8254,13 +8254,13 @@ const BLOCK_DEVICE_INHERITING = RIGHTS_ALL;
8254
8254
  const CHARACTER_DEVICE_BASE = RIGHTS_ALL;
8255
8255
  const CHARACTER_DEVICE_INHERITING = RIGHTS_ALL;
8256
8256
  const REGULAR_FILE_BASE = WasiRights.FD_DATASYNC | WasiRights.FD_READ | WasiRights.FD_SEEK | WasiRights.FD_FDSTAT_SET_FLAGS | WasiRights.FD_SYNC | WasiRights.FD_TELL | WasiRights.FD_WRITE | WasiRights.FD_ADVISE | WasiRights.FD_ALLOCATE | WasiRights.FD_FILESTAT_GET | WasiRights.FD_FILESTAT_SET_SIZE | WasiRights.FD_FILESTAT_SET_TIMES | WasiRights.POLL_FD_READWRITE;
8257
- const REGULAR_FILE_INHERITING = /* @__PURE__ */ BigInt(0);
8257
+ const REGULAR_FILE_INHERITING = /*#__PURE__*/ BigInt(0);
8258
8258
  const DIRECTORY_BASE = WasiRights.FD_FDSTAT_SET_FLAGS | WasiRights.FD_SYNC | WasiRights.FD_ADVISE | WasiRights.PATH_CREATE_DIRECTORY | WasiRights.PATH_CREATE_FILE | WasiRights.PATH_LINK_SOURCE | WasiRights.PATH_LINK_TARGET | WasiRights.PATH_OPEN | WasiRights.FD_READDIR | WasiRights.PATH_READLINK | WasiRights.PATH_RENAME_SOURCE | WasiRights.PATH_RENAME_TARGET | WasiRights.PATH_FILESTAT_GET | WasiRights.PATH_FILESTAT_SET_SIZE | WasiRights.PATH_FILESTAT_SET_TIMES | WasiRights.FD_FILESTAT_GET | WasiRights.FD_FILESTAT_SET_TIMES | WasiRights.PATH_SYMLINK | WasiRights.PATH_UNLINK_FILE | WasiRights.PATH_REMOVE_DIRECTORY | WasiRights.POLL_FD_READWRITE;
8259
8259
  const DIRECTORY_INHERITING = DIRECTORY_BASE | REGULAR_FILE_BASE;
8260
8260
  const SOCKET_BASE = WasiRights.FD_READ | WasiRights.FD_FDSTAT_SET_FLAGS | WasiRights.FD_WRITE | WasiRights.FD_FILESTAT_GET | WasiRights.POLL_FD_READWRITE | WasiRights.SOCK_SHUTDOWN;
8261
8261
  const SOCKET_INHERITING = RIGHTS_ALL;
8262
8262
  const TTY_BASE = WasiRights.FD_READ | WasiRights.FD_FDSTAT_SET_FLAGS | WasiRights.FD_WRITE | WasiRights.FD_FILESTAT_GET | WasiRights.POLL_FD_READWRITE;
8263
- const TTY_INHERITING = /* @__PURE__ */ BigInt(0);
8263
+ const TTY_INHERITING = /*#__PURE__*/ BigInt(0);
8264
8264
  function getRights(stdio, fd, flags, type) {
8265
8265
  const ret = {
8266
8266
  base: BigInt(0),
@@ -8500,7 +8500,7 @@ var AsyncTable = class extends FileDescriptorTable {
8500
8500
  }
8501
8501
  };
8502
8502
  /** @public */
8503
- const WebAssemblyMemory = /* @__PURE__ */ (function() {
8503
+ const WebAssemblyMemory = /*#__PURE__*/ (function() {
8504
8504
  return _WebAssembly.Memory;
8505
8505
  })();
8506
8506
  /** @public */
@@ -8665,8 +8665,8 @@ async function resolvePathAsync(fs, fileDescriptor, path, flags) {
8665
8665
  }
8666
8666
  return resolvedPath;
8667
8667
  }
8668
- const encoder = /* @__PURE__ */ new TextEncoder();
8669
- const decoder = /* @__PURE__ */ new TextDecoder();
8668
+ const encoder = /*#__PURE__*/ new TextEncoder();
8669
+ const decoder = /*#__PURE__*/ new TextDecoder();
8670
8670
  const INT64_MAX = (BigInt(1) << BigInt(63)) - BigInt(1);
8671
8671
  function readStdin() {
8672
8672
  const value = window.prompt();
@@ -9852,7 +9852,7 @@ var WASI$1 = class WASI$1 {
9852
9852
  return _this;
9853
9853
  }
9854
9854
  };
9855
- const kEmptyObject = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
9855
+ const kEmptyObject = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.create(null));
9856
9856
  const kExitCode = Symbol("kExitCode");
9857
9857
  const kSetMemory = Symbol("kSetMemory");
9858
9858
  const kStarted = Symbol("kStarted");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-parser/binding-wasm32-wasi",
3
- "version": "0.133.0",
3
+ "version": "0.134.0",
4
4
  "cpu": [
5
5
  "wasm32"
6
6
  ],
Binary file
@@ -1,7 +1,5 @@
1
1
  import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2
2
 
3
- const errorOutputs = []
4
-
5
3
  const handler = new MessageHandler({
6
4
  onLoad({ wasmModule, wasmMemory }) {
7
5
  const wasi = new WASI({