@oxc-parser/binding-wasm32-wasi 0.82.2 → 0.82.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/browser-bundle.mjs +76 -76
- package/package.json +1 -1
- package/parser.wasm32-wasi.wasm +0 -0
package/browser-bundle.mjs
CHANGED
|
@@ -90,7 +90,7 @@ function getReuseWorker(value) {
|
|
|
90
90
|
return { size, strict };
|
|
91
91
|
}
|
|
92
92
|
var nextWorkerID = 0;
|
|
93
|
-
var ThreadManager = /* @__PURE__ */ function() {
|
|
93
|
+
var ThreadManager = /* @__PURE__ */ (function() {
|
|
94
94
|
function ThreadManager2(options) {
|
|
95
95
|
var _a;
|
|
96
96
|
this.unusedWorkers = [];
|
|
@@ -344,7 +344,7 @@ var ThreadManager = /* @__PURE__ */ function() {
|
|
|
344
344
|
});
|
|
345
345
|
};
|
|
346
346
|
return ThreadManager2;
|
|
347
|
-
}();
|
|
347
|
+
})();
|
|
348
348
|
var kIsProxy = Symbol("kIsProxy");
|
|
349
349
|
function createInstanceProxy(instance, memory) {
|
|
350
350
|
if (instance[kIsProxy])
|
|
@@ -418,7 +418,7 @@ function createInstanceProxy(instance, memory) {
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
var patchedWasiInstances = /* @__PURE__ */ new WeakMap();
|
|
421
|
-
var WASIThreads = /* @__PURE__ */ function() {
|
|
421
|
+
var WASIThreads = /* @__PURE__ */ (function() {
|
|
422
422
|
function WASIThreads2(options) {
|
|
423
423
|
var _this_1 = this;
|
|
424
424
|
if (!options) {
|
|
@@ -654,7 +654,7 @@ var WASIThreads = /* @__PURE__ */ function() {
|
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
656
|
return WASIThreads2;
|
|
657
|
-
}();
|
|
657
|
+
})();
|
|
658
658
|
function patchWasiInstance(wasiThreads, wasi) {
|
|
659
659
|
var patched = patchedWasiInstances.get(wasiThreads);
|
|
660
660
|
if (patched.has(wasi)) {
|
|
@@ -797,7 +797,7 @@ function loadSync(wasmInput, imports) {
|
|
|
797
797
|
return source;
|
|
798
798
|
}
|
|
799
799
|
function createNapiModule(options) {
|
|
800
|
-
var napiModule = function() {
|
|
800
|
+
var napiModule = (function() {
|
|
801
801
|
var ENVIRONMENT_IS_PTHREAD = Boolean(options.childThread);
|
|
802
802
|
var waitThreadStart = typeof options.waitThreadStart === "number" ? options.waitThreadStart : Boolean(options.waitThreadStart);
|
|
803
803
|
var wasmInstance;
|
|
@@ -8583,7 +8583,7 @@ function createNapiModule(options) {
|
|
|
8583
8583
|
napiModule2.imports.napi.napi_unref_threadsafe_function = napi_unref_threadsafe_function;
|
|
8584
8584
|
napiModule2.imports.napi.napi_ref_threadsafe_function = napi_ref_threadsafe_function;
|
|
8585
8585
|
return napiModule2;
|
|
8586
|
-
}();
|
|
8586
|
+
})();
|
|
8587
8587
|
return napiModule;
|
|
8588
8588
|
}
|
|
8589
8589
|
function loadNapiModuleImpl(loadFn, userNapiModule, wasmInput, options) {
|
|
@@ -8713,21 +8713,21 @@ var externalValue = /* @__PURE__ */ new WeakMap();
|
|
|
8713
8713
|
function isExternal(object) {
|
|
8714
8714
|
return externalValue.has(object);
|
|
8715
8715
|
}
|
|
8716
|
-
var External = function() {
|
|
8716
|
+
var External = (function() {
|
|
8717
8717
|
function External2(value) {
|
|
8718
8718
|
Object.setPrototypeOf(this, null);
|
|
8719
8719
|
externalValue.set(this, value);
|
|
8720
8720
|
}
|
|
8721
8721
|
External2.prototype = null;
|
|
8722
8722
|
return External2;
|
|
8723
|
-
}();
|
|
8723
|
+
})();
|
|
8724
8724
|
function getExternalValue(external) {
|
|
8725
8725
|
if (!isExternal(external)) {
|
|
8726
8726
|
throw new TypeError("not external");
|
|
8727
8727
|
}
|
|
8728
8728
|
return externalValue.get(external);
|
|
8729
8729
|
}
|
|
8730
|
-
var supportNewFunction = /* @__PURE__ */ function() {
|
|
8730
|
+
var supportNewFunction = /* @__PURE__ */ (function() {
|
|
8731
8731
|
var f;
|
|
8732
8732
|
try {
|
|
8733
8733
|
f = new Function();
|
|
@@ -8735,13 +8735,13 @@ var supportNewFunction = /* @__PURE__ */ function() {
|
|
|
8735
8735
|
return false;
|
|
8736
8736
|
}
|
|
8737
8737
|
return typeof f === "function";
|
|
8738
|
-
}();
|
|
8739
|
-
var _global = /* @__PURE__ */ function() {
|
|
8738
|
+
})();
|
|
8739
|
+
var _global = /* @__PURE__ */ (function() {
|
|
8740
8740
|
if (typeof globalThis !== "undefined")
|
|
8741
8741
|
return globalThis;
|
|
8742
|
-
var g = /* @__PURE__ */ function() {
|
|
8742
|
+
var g = /* @__PURE__ */ (function() {
|
|
8743
8743
|
return this;
|
|
8744
|
-
}();
|
|
8744
|
+
})();
|
|
8745
8745
|
if (!g && supportNewFunction) {
|
|
8746
8746
|
try {
|
|
8747
8747
|
g = new Function("return this")();
|
|
@@ -8759,8 +8759,8 @@ var _global = /* @__PURE__ */ function() {
|
|
|
8759
8759
|
return self;
|
|
8760
8760
|
}
|
|
8761
8761
|
return g;
|
|
8762
|
-
}();
|
|
8763
|
-
var TryCatch = /* @__PURE__ */ function() {
|
|
8762
|
+
})();
|
|
8763
|
+
var TryCatch = /* @__PURE__ */ (function() {
|
|
8764
8764
|
function TryCatch2() {
|
|
8765
8765
|
this._exception = void 0;
|
|
8766
8766
|
this._caught = false;
|
|
@@ -8788,18 +8788,18 @@ var TryCatch = /* @__PURE__ */ function() {
|
|
|
8788
8788
|
return e;
|
|
8789
8789
|
};
|
|
8790
8790
|
return TryCatch2;
|
|
8791
|
-
}();
|
|
8792
|
-
var canSetFunctionName = /* @__PURE__ */ function() {
|
|
8791
|
+
})();
|
|
8792
|
+
var canSetFunctionName = /* @__PURE__ */ (function() {
|
|
8793
8793
|
var _a;
|
|
8794
8794
|
try {
|
|
8795
8795
|
return Boolean((_a = Object.getOwnPropertyDescriptor(Function.prototype, "name")) === null || _a === void 0 ? void 0 : _a.configurable);
|
|
8796
8796
|
} catch (_) {
|
|
8797
8797
|
return false;
|
|
8798
8798
|
}
|
|
8799
|
-
}();
|
|
8799
|
+
})();
|
|
8800
8800
|
var supportReflect = typeof Reflect === "object";
|
|
8801
8801
|
var supportFinalizer = typeof FinalizationRegistry !== "undefined" && typeof WeakRef !== "undefined";
|
|
8802
|
-
var supportWeakSymbol = /* @__PURE__ */ function() {
|
|
8802
|
+
var supportWeakSymbol = /* @__PURE__ */ (function() {
|
|
8803
8803
|
try {
|
|
8804
8804
|
var sym = Symbol();
|
|
8805
8805
|
new WeakRef(sym);
|
|
@@ -8808,24 +8808,24 @@ var supportWeakSymbol = /* @__PURE__ */ function() {
|
|
|
8808
8808
|
return false;
|
|
8809
8809
|
}
|
|
8810
8810
|
return true;
|
|
8811
|
-
}();
|
|
8811
|
+
})();
|
|
8812
8812
|
var supportBigInt = typeof BigInt !== "undefined";
|
|
8813
|
-
var _require = /* @__PURE__ */ function() {
|
|
8813
|
+
var _require = /* @__PURE__ */ (function() {
|
|
8814
8814
|
var nativeRequire;
|
|
8815
8815
|
{
|
|
8816
|
-
nativeRequire = /* @__PURE__ */ function() {
|
|
8816
|
+
nativeRequire = /* @__PURE__ */ (function() {
|
|
8817
8817
|
return typeof __require !== "undefined" ? __require : void 0;
|
|
8818
|
-
}();
|
|
8818
|
+
})();
|
|
8819
8819
|
}
|
|
8820
8820
|
return nativeRequire;
|
|
8821
|
-
}();
|
|
8822
|
-
var _MessageChannel = typeof MessageChannel === "function" ? MessageChannel : /* @__PURE__ */ function() {
|
|
8821
|
+
})();
|
|
8822
|
+
var _MessageChannel = typeof MessageChannel === "function" ? MessageChannel : /* @__PURE__ */ (function() {
|
|
8823
8823
|
try {
|
|
8824
8824
|
return _require("worker_threads").MessageChannel;
|
|
8825
8825
|
} catch (_) {
|
|
8826
8826
|
}
|
|
8827
8827
|
return void 0;
|
|
8828
|
-
}();
|
|
8828
|
+
})();
|
|
8829
8829
|
var _setImmediate = typeof setImmediate === "function" ? setImmediate : function(callback) {
|
|
8830
8830
|
if (typeof callback !== "function") {
|
|
8831
8831
|
throw new TypeError('The "callback" argument must be of type function');
|
|
@@ -8842,18 +8842,18 @@ var _setImmediate = typeof setImmediate === "function" ? setImmediate : function
|
|
|
8842
8842
|
setTimeout(callback, 0);
|
|
8843
8843
|
}
|
|
8844
8844
|
};
|
|
8845
|
-
var _Buffer = typeof Buffer === "function" ? Buffer : /* @__PURE__ */ function() {
|
|
8845
|
+
var _Buffer = typeof Buffer === "function" ? Buffer : /* @__PURE__ */ (function() {
|
|
8846
8846
|
try {
|
|
8847
8847
|
return _require("buffer").Buffer;
|
|
8848
8848
|
} catch (_) {
|
|
8849
8849
|
}
|
|
8850
8850
|
return void 0;
|
|
8851
|
-
}();
|
|
8851
|
+
})();
|
|
8852
8852
|
var version = "1.4.3";
|
|
8853
8853
|
var NODE_API_SUPPORTED_VERSION_MAX = 10;
|
|
8854
8854
|
var NAPI_VERSION_EXPERIMENTAL = 2147483647;
|
|
8855
8855
|
var NODE_API_DEFAULT_MODULE_API_VERSION = 8;
|
|
8856
|
-
var Handle = /* @__PURE__ */ function() {
|
|
8856
|
+
var Handle = /* @__PURE__ */ (function() {
|
|
8857
8857
|
function Handle2(id, value) {
|
|
8858
8858
|
this.id = id;
|
|
8859
8859
|
this.value = value;
|
|
@@ -8919,8 +8919,8 @@ var Handle = /* @__PURE__ */ function() {
|
|
|
8919
8919
|
this.value = void 0;
|
|
8920
8920
|
};
|
|
8921
8921
|
return Handle2;
|
|
8922
|
-
}();
|
|
8923
|
-
var ConstHandle = /* @__PURE__ */ function(_super) {
|
|
8922
|
+
})();
|
|
8923
|
+
var ConstHandle = /* @__PURE__ */ (function(_super) {
|
|
8924
8924
|
__extends(ConstHandle2, _super);
|
|
8925
8925
|
function ConstHandle2(id, value) {
|
|
8926
8926
|
return _super.call(this, id, value) || this;
|
|
@@ -8928,8 +8928,8 @@ var ConstHandle = /* @__PURE__ */ function(_super) {
|
|
|
8928
8928
|
ConstHandle2.prototype.dispose = function() {
|
|
8929
8929
|
};
|
|
8930
8930
|
return ConstHandle2;
|
|
8931
|
-
}(Handle);
|
|
8932
|
-
var HandleStore = /* @__PURE__ */ function() {
|
|
8931
|
+
})(Handle);
|
|
8932
|
+
var HandleStore = /* @__PURE__ */ (function() {
|
|
8933
8933
|
function HandleStore2() {
|
|
8934
8934
|
this._values = [
|
|
8935
8935
|
void 0,
|
|
@@ -8984,8 +8984,8 @@ var HandleStore = /* @__PURE__ */ function() {
|
|
|
8984
8984
|
HandleStore2.GLOBAL = new ConstHandle(5, _global);
|
|
8985
8985
|
HandleStore2.MIN_ID = 6;
|
|
8986
8986
|
return HandleStore2;
|
|
8987
|
-
}();
|
|
8988
|
-
var HandleScope = /* @__PURE__ */ function() {
|
|
8987
|
+
})();
|
|
8988
|
+
var HandleScope = /* @__PURE__ */ (function() {
|
|
8989
8989
|
function HandleScope2(handleStore, id, parentScope, start, end) {
|
|
8990
8990
|
if (end === void 0) {
|
|
8991
8991
|
end = start;
|
|
@@ -9038,8 +9038,8 @@ var HandleScope = /* @__PURE__ */ function() {
|
|
|
9038
9038
|
return this._escapeCalled;
|
|
9039
9039
|
};
|
|
9040
9040
|
return HandleScope2;
|
|
9041
|
-
}();
|
|
9042
|
-
var ScopeStore = /* @__PURE__ */ function() {
|
|
9041
|
+
})();
|
|
9042
|
+
var ScopeStore = /* @__PURE__ */ (function() {
|
|
9043
9043
|
function ScopeStore2() {
|
|
9044
9044
|
this._rootScope = new HandleScope(null, 0, null, 1, HandleStore.MIN_ID);
|
|
9045
9045
|
this.currentScope = this._rootScope;
|
|
@@ -9075,8 +9075,8 @@ var ScopeStore = /* @__PURE__ */ function() {
|
|
|
9075
9075
|
this._values.length = 1;
|
|
9076
9076
|
};
|
|
9077
9077
|
return ScopeStore2;
|
|
9078
|
-
}();
|
|
9079
|
-
var RefTracker = /* @__PURE__ */ function() {
|
|
9078
|
+
})();
|
|
9079
|
+
var RefTracker = /* @__PURE__ */ (function() {
|
|
9080
9080
|
function RefTracker2() {
|
|
9081
9081
|
this._next = null;
|
|
9082
9082
|
this._prev = null;
|
|
@@ -9109,8 +9109,8 @@ var RefTracker = /* @__PURE__ */ function() {
|
|
|
9109
9109
|
}
|
|
9110
9110
|
};
|
|
9111
9111
|
return RefTracker2;
|
|
9112
|
-
}();
|
|
9113
|
-
var Finalizer = /* @__PURE__ */ function() {
|
|
9112
|
+
})();
|
|
9113
|
+
var Finalizer = /* @__PURE__ */ (function() {
|
|
9114
9114
|
function Finalizer2(envObject, _finalizeCallback, _finalizeData, _finalizeHint) {
|
|
9115
9115
|
if (_finalizeCallback === void 0) {
|
|
9116
9116
|
_finalizeCallback = 0;
|
|
@@ -9163,8 +9163,8 @@ var Finalizer = /* @__PURE__ */ function() {
|
|
|
9163
9163
|
this._makeDynCall_vppp = void 0;
|
|
9164
9164
|
};
|
|
9165
9165
|
return Finalizer2;
|
|
9166
|
-
}();
|
|
9167
|
-
var TrackedFinalizer = /* @__PURE__ */ function(_super) {
|
|
9166
|
+
})();
|
|
9167
|
+
var TrackedFinalizer = /* @__PURE__ */ (function(_super) {
|
|
9168
9168
|
__extends(TrackedFinalizer2, _super);
|
|
9169
9169
|
function TrackedFinalizer2(envObject, finalize_callback, finalize_data, finalize_hint) {
|
|
9170
9170
|
var _this = _super.call(this) || this;
|
|
@@ -9204,7 +9204,7 @@ var TrackedFinalizer = /* @__PURE__ */ function(_super) {
|
|
|
9204
9204
|
}
|
|
9205
9205
|
};
|
|
9206
9206
|
return TrackedFinalizer2;
|
|
9207
|
-
}(RefTracker);
|
|
9207
|
+
})(RefTracker);
|
|
9208
9208
|
function throwNodeApiVersionError(moduleName, moduleApiVersion) {
|
|
9209
9209
|
var errorMessage = "".concat(moduleName, " requires Node-API version ").concat(moduleApiVersion, ", but this version of Node.js only supports version ").concat(NODE_API_SUPPORTED_VERSION_MAX, " add-ons.");
|
|
9210
9210
|
throw new Error(errorMessage);
|
|
@@ -9215,7 +9215,7 @@ function handleThrow(envObject, value) {
|
|
|
9215
9215
|
}
|
|
9216
9216
|
throw value;
|
|
9217
9217
|
}
|
|
9218
|
-
var Env = /* @__PURE__ */ function() {
|
|
9218
|
+
var Env = /* @__PURE__ */ (function() {
|
|
9219
9219
|
function Env2(ctx, moduleApiVersion, makeDynCall_vppp, makeDynCall_vp, abort) {
|
|
9220
9220
|
this.ctx = ctx;
|
|
9221
9221
|
this.moduleApiVersion = moduleApiVersion;
|
|
@@ -9374,8 +9374,8 @@ var Env = /* @__PURE__ */ function() {
|
|
|
9374
9374
|
return this.instanceData ? this.instanceData.data() : 0;
|
|
9375
9375
|
};
|
|
9376
9376
|
return Env2;
|
|
9377
|
-
}();
|
|
9378
|
-
var NodeEnv = /* @__PURE__ */ function(_super) {
|
|
9377
|
+
})();
|
|
9378
|
+
var NodeEnv = /* @__PURE__ */ (function(_super) {
|
|
9379
9379
|
__extends(NodeEnv2, _super);
|
|
9380
9380
|
function NodeEnv2(ctx, filename, moduleApiVersion, makeDynCall_vppp, makeDynCall_vp, abort, nodeBinding) {
|
|
9381
9381
|
var _this = _super.call(this, ctx, moduleApiVersion, makeDynCall_vppp, makeDynCall_vp, abort) || this;
|
|
@@ -9457,7 +9457,7 @@ var NodeEnv = /* @__PURE__ */ function(_super) {
|
|
|
9457
9457
|
}
|
|
9458
9458
|
};
|
|
9459
9459
|
return NodeEnv2;
|
|
9460
|
-
}(Env);
|
|
9460
|
+
})(Env);
|
|
9461
9461
|
function newEnv(ctx, filename, moduleApiVersion, makeDynCall_vppp, makeDynCall_vp, abort, nodeBinding) {
|
|
9462
9462
|
moduleApiVersion = typeof moduleApiVersion !== "number" ? NODE_API_DEFAULT_MODULE_API_VERSION : moduleApiVersion;
|
|
9463
9463
|
if (moduleApiVersion < NODE_API_DEFAULT_MODULE_API_VERSION) {
|
|
@@ -9472,7 +9472,7 @@ function newEnv(ctx, filename, moduleApiVersion, makeDynCall_vppp, makeDynCall_v
|
|
|
9472
9472
|
}, 0);
|
|
9473
9473
|
return env;
|
|
9474
9474
|
}
|
|
9475
|
-
var EmnapiError = /* @__PURE__ */ function(_super) {
|
|
9475
|
+
var EmnapiError = /* @__PURE__ */ (function(_super) {
|
|
9476
9476
|
__extends(EmnapiError2, _super);
|
|
9477
9477
|
function EmnapiError2(message) {
|
|
9478
9478
|
var _newTarget = this.constructor;
|
|
@@ -9493,37 +9493,37 @@ var EmnapiError = /* @__PURE__ */ function(_super) {
|
|
|
9493
9493
|
return _this;
|
|
9494
9494
|
}
|
|
9495
9495
|
return EmnapiError2;
|
|
9496
|
-
}(Error);
|
|
9496
|
+
})(Error);
|
|
9497
9497
|
Object.defineProperty(EmnapiError.prototype, "name", {
|
|
9498
9498
|
configurable: true,
|
|
9499
9499
|
writable: true,
|
|
9500
9500
|
value: "EmnapiError"
|
|
9501
9501
|
});
|
|
9502
|
-
var NotSupportWeakRefError = /* @__PURE__ */ function(_super) {
|
|
9502
|
+
var NotSupportWeakRefError = /* @__PURE__ */ (function(_super) {
|
|
9503
9503
|
__extends(NotSupportWeakRefError2, _super);
|
|
9504
9504
|
function NotSupportWeakRefError2(api, message) {
|
|
9505
9505
|
return _super.call(this, "".concat(api, ': The current runtime does not support "FinalizationRegistry" and "WeakRef".').concat(message ? " ".concat(message) : "")) || this;
|
|
9506
9506
|
}
|
|
9507
9507
|
return NotSupportWeakRefError2;
|
|
9508
|
-
}(EmnapiError);
|
|
9508
|
+
})(EmnapiError);
|
|
9509
9509
|
Object.defineProperty(NotSupportWeakRefError.prototype, "name", {
|
|
9510
9510
|
configurable: true,
|
|
9511
9511
|
writable: true,
|
|
9512
9512
|
value: "NotSupportWeakRefError"
|
|
9513
9513
|
});
|
|
9514
|
-
var NotSupportBufferError = /* @__PURE__ */ function(_super) {
|
|
9514
|
+
var NotSupportBufferError = /* @__PURE__ */ (function(_super) {
|
|
9515
9515
|
__extends(NotSupportBufferError2, _super);
|
|
9516
9516
|
function NotSupportBufferError2(api, message) {
|
|
9517
9517
|
return _super.call(this, "".concat(api, ': The current runtime does not support "Buffer". Consider using buffer polyfill to make sure `globalThis.Buffer` is defined.').concat(message ? " ".concat(message) : "")) || this;
|
|
9518
9518
|
}
|
|
9519
9519
|
return NotSupportBufferError2;
|
|
9520
|
-
}(EmnapiError);
|
|
9520
|
+
})(EmnapiError);
|
|
9521
9521
|
Object.defineProperty(NotSupportBufferError.prototype, "name", {
|
|
9522
9522
|
configurable: true,
|
|
9523
9523
|
writable: true,
|
|
9524
9524
|
value: "NotSupportBufferError"
|
|
9525
9525
|
});
|
|
9526
|
-
var StrongRef = /* @__PURE__ */ function() {
|
|
9526
|
+
var StrongRef = /* @__PURE__ */ (function() {
|
|
9527
9527
|
function StrongRef2(value) {
|
|
9528
9528
|
this._value = value;
|
|
9529
9529
|
}
|
|
@@ -9534,8 +9534,8 @@ var StrongRef = /* @__PURE__ */ function() {
|
|
|
9534
9534
|
this._value = void 0;
|
|
9535
9535
|
};
|
|
9536
9536
|
return StrongRef2;
|
|
9537
|
-
}();
|
|
9538
|
-
var Persistent = /* @__PURE__ */ function() {
|
|
9537
|
+
})();
|
|
9538
|
+
var Persistent = /* @__PURE__ */ (function() {
|
|
9539
9539
|
function Persistent2(value) {
|
|
9540
9540
|
this._ref = new StrongRef(value);
|
|
9541
9541
|
}
|
|
@@ -9608,7 +9608,7 @@ var Persistent = /* @__PURE__ */ function() {
|
|
|
9608
9608
|
}
|
|
9609
9609
|
}) : void 0;
|
|
9610
9610
|
return Persistent2;
|
|
9611
|
-
}();
|
|
9611
|
+
})();
|
|
9612
9612
|
var ReferenceOwnership;
|
|
9613
9613
|
(function(ReferenceOwnership2) {
|
|
9614
9614
|
ReferenceOwnership2[ReferenceOwnership2["kRuntime"] = 0] = "kRuntime";
|
|
@@ -9617,7 +9617,7 @@ var ReferenceOwnership;
|
|
|
9617
9617
|
function canBeHeldWeakly(value) {
|
|
9618
9618
|
return value.isObject() || value.isFunction() || value.isSymbol();
|
|
9619
9619
|
}
|
|
9620
|
-
var Reference = /* @__PURE__ */ function(_super) {
|
|
9620
|
+
var Reference = /* @__PURE__ */ (function(_super) {
|
|
9621
9621
|
__extends(Reference2, _super);
|
|
9622
9622
|
function Reference2(envObject, handle_id, initialRefcount, ownership) {
|
|
9623
9623
|
var _this = _super.call(this) || this;
|
|
@@ -9715,8 +9715,8 @@ var Reference = /* @__PURE__ */ function(_super) {
|
|
|
9715
9715
|
this.id = 0;
|
|
9716
9716
|
};
|
|
9717
9717
|
return Reference2;
|
|
9718
|
-
}(RefTracker);
|
|
9719
|
-
var ReferenceWithData = /* @__PURE__ */ function(_super) {
|
|
9718
|
+
})(RefTracker);
|
|
9719
|
+
var ReferenceWithData = /* @__PURE__ */ (function(_super) {
|
|
9720
9720
|
__extends(ReferenceWithData2, _super);
|
|
9721
9721
|
function ReferenceWithData2(envObject, value, initialRefcount, ownership, _data) {
|
|
9722
9722
|
var _this = _super.call(this, envObject, value, initialRefcount, ownership) || this;
|
|
@@ -9733,8 +9733,8 @@ var ReferenceWithData = /* @__PURE__ */ function(_super) {
|
|
|
9733
9733
|
return this._data;
|
|
9734
9734
|
};
|
|
9735
9735
|
return ReferenceWithData2;
|
|
9736
|
-
}(Reference);
|
|
9737
|
-
var ReferenceWithFinalizer = /* @__PURE__ */ function(_super) {
|
|
9736
|
+
})(Reference);
|
|
9737
|
+
var ReferenceWithFinalizer = /* @__PURE__ */ (function(_super) {
|
|
9738
9738
|
__extends(ReferenceWithFinalizer2, _super);
|
|
9739
9739
|
function ReferenceWithFinalizer2(envObject, value, initialRefcount, ownership, finalize_callback, finalize_data, finalize_hint) {
|
|
9740
9740
|
var _this = _super.call(this, envObject, value, initialRefcount, ownership) || this;
|
|
@@ -9768,8 +9768,8 @@ var ReferenceWithFinalizer = /* @__PURE__ */ function(_super) {
|
|
|
9768
9768
|
this._finalizer = void 0;
|
|
9769
9769
|
};
|
|
9770
9770
|
return ReferenceWithFinalizer2;
|
|
9771
|
-
}(Reference);
|
|
9772
|
-
var Deferred = /* @__PURE__ */ function() {
|
|
9771
|
+
})(Reference);
|
|
9772
|
+
var Deferred = /* @__PURE__ */ (function() {
|
|
9773
9773
|
function Deferred2(ctx, value) {
|
|
9774
9774
|
this.id = 0;
|
|
9775
9775
|
this.ctx = ctx;
|
|
@@ -9795,8 +9795,8 @@ var Deferred = /* @__PURE__ */ function() {
|
|
|
9795
9795
|
this.ctx = null;
|
|
9796
9796
|
};
|
|
9797
9797
|
return Deferred2;
|
|
9798
|
-
}();
|
|
9799
|
-
var Store = /* @__PURE__ */ function() {
|
|
9798
|
+
})();
|
|
9799
|
+
var Store = /* @__PURE__ */ (function() {
|
|
9800
9800
|
function Store2() {
|
|
9801
9801
|
this._values = [void 0];
|
|
9802
9802
|
this._values.length = 4;
|
|
@@ -9842,8 +9842,8 @@ var Store = /* @__PURE__ */ function() {
|
|
|
9842
9842
|
this._freeList = [];
|
|
9843
9843
|
};
|
|
9844
9844
|
return Store2;
|
|
9845
|
-
}();
|
|
9846
|
-
var CleanupHookCallback = /* @__PURE__ */ function() {
|
|
9845
|
+
})();
|
|
9846
|
+
var CleanupHookCallback = /* @__PURE__ */ (function() {
|
|
9847
9847
|
function CleanupHookCallback2(envObject, fn, arg, order) {
|
|
9848
9848
|
this.envObject = envObject;
|
|
9849
9849
|
this.fn = fn;
|
|
@@ -9851,8 +9851,8 @@ var CleanupHookCallback = /* @__PURE__ */ function() {
|
|
|
9851
9851
|
this.order = order;
|
|
9852
9852
|
}
|
|
9853
9853
|
return CleanupHookCallback2;
|
|
9854
|
-
}();
|
|
9855
|
-
var CleanupQueue = /* @__PURE__ */ function() {
|
|
9854
|
+
})();
|
|
9855
|
+
var CleanupQueue = /* @__PURE__ */ (function() {
|
|
9856
9856
|
function CleanupQueue2() {
|
|
9857
9857
|
this._cleanupHooks = [];
|
|
9858
9858
|
this._cleanupHookCounter = 0;
|
|
@@ -9897,8 +9897,8 @@ var CleanupQueue = /* @__PURE__ */ function() {
|
|
|
9897
9897
|
this._cleanupHookCounter = 0;
|
|
9898
9898
|
};
|
|
9899
9899
|
return CleanupQueue2;
|
|
9900
|
-
}();
|
|
9901
|
-
var Context = /* @__PURE__ */ function() {
|
|
9900
|
+
})();
|
|
9901
|
+
var Context = /* @__PURE__ */ (function() {
|
|
9902
9902
|
function Context2() {
|
|
9903
9903
|
this._isStopping = false;
|
|
9904
9904
|
this._canCallIntoJs = true;
|
|
@@ -10026,7 +10026,7 @@ var Context = /* @__PURE__ */ function() {
|
|
|
10026
10026
|
this.runCleanup();
|
|
10027
10027
|
};
|
|
10028
10028
|
return Context2;
|
|
10029
|
-
}();
|
|
10029
|
+
})();
|
|
10030
10030
|
var defaultContext;
|
|
10031
10031
|
function createContext() {
|
|
10032
10032
|
return new Context();
|
|
@@ -10755,9 +10755,9 @@ var AsyncTable = class extends FileDescriptorTable {
|
|
|
10755
10755
|
this.used--;
|
|
10756
10756
|
}
|
|
10757
10757
|
};
|
|
10758
|
-
var WebAssemblyMemory = /* @__PURE__ */ function() {
|
|
10758
|
+
var WebAssemblyMemory = /* @__PURE__ */ (function() {
|
|
10759
10759
|
return _WebAssembly.Memory;
|
|
10760
|
-
}();
|
|
10760
|
+
})();
|
|
10761
10761
|
var Memory = class extends WebAssemblyMemory {
|
|
10762
10762
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
10763
10763
|
constructor(descriptor) {
|
package/package.json
CHANGED
package/parser.wasm32-wasi.wasm
CHANGED
|
Binary file
|