This commit is contained in:
Spxg
2025-10-23 16:26:15 +00:00
parent c54e2056b8
commit 7bc0a248e5
7 changed files with 98 additions and 98 deletions

View File

@@ -190,28 +190,6 @@ state => {
}
);
function makeClosure(arg0, arg1, dtor, f) {
const state = { a: arg0, b: arg1, cnt: 1, dtor };
const real = (...args) => {
// First up with a closure we increment the internal reference
// count. This ensures that the Rust closure environment won't
// be deallocated while we're invoking it.
state.cnt++;
try {
return f(state.a, state.b, ...args);
} finally {
if (--state.cnt === 0) {
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0;
CLOSURE_DTORS.unregister(state);
}
}
};
real.original = state;
CLOSURE_DTORS.register(real, state, state);
return real;
}
function makeMutClosure(arg0, arg1, dtor, f) {
const state = { a: arg0, b: arg1, cnt: 1, dtor };
const real = (...args) => {
@@ -237,16 +215,38 @@ function makeMutClosure(arg0, arg1, dtor, f) {
CLOSURE_DTORS.register(real, state, state);
return real;
}
function __wbg_adapter_6(arg0, arg1, arg2) {
wasm.closure857_externref_shim(arg0, arg1, arg2);
function makeClosure(arg0, arg1, dtor, f) {
const state = { a: arg0, b: arg1, cnt: 1, dtor };
const real = (...args) => {
// First up with a closure we increment the internal reference
// count. This ensures that the Rust closure environment won't
// be deallocated while we're invoking it.
state.cnt++;
try {
return f(state.a, state.b, ...args);
} finally {
if (--state.cnt === 0) {
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0;
CLOSURE_DTORS.unregister(state);
}
}
};
real.original = state;
CLOSURE_DTORS.register(real, state, state);
return real;
}
function __wbg_adapter_10(arg0, arg1, arg2) {
wasm.closure864_externref_shim(arg0, arg1, arg2);
}
function __wbg_adapter_15(arg0, arg1, arg2) {
wasm.closure84_externref_shim(arg0, arg1, arg2);
wasm.closure51_externref_shim(arg0, arg1, arg2);
}
function __wbg_adapter_196(arg0, arg1, arg2, arg3) {
wasm.closure872_externref_shim(arg0, arg1, arg2, arg3);
wasm.closure879_externref_shim(arg0, arg1, arg2, arg3);
}
const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -555,7 +555,7 @@ function __wbg_get_imports() {
const ret = arg0.getMonth();
return ret;
};
imports.wbg.__wbg_getRandomValues_050cadc9f56e1763 = function() { return handleError(function (arg0, arg1) {
imports.wbg.__wbg_getRandomValues_86cdae71dd9aa438 = function() { return handleError(function (arg0, arg1) {
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
}, arguments) };
imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) {
@@ -959,6 +959,11 @@ function __wbg_get_imports() {
const ret = arg0.write(arg1, arg2);
return ret;
}, arguments) };
imports.wbg.__wbindgen_cast_17a4a7bb0b422091 = function(arg0, arg1) {
// Cast intrinsic for `Closure(Closure { dtor_idx: 863, function: Function { arguments: [Externref], shim_idx: 864, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
const ret = makeMutClosure(arg0, arg1, 863, __wbg_adapter_10);
return ret;
};
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
// Cast intrinsic for `Ref(String) -> Externref`.
const ret = getStringFromWasm0(arg0, arg1);
@@ -969,14 +974,9 @@ function __wbg_get_imports() {
const ret = BigInt.asUintN(64, arg0);
return ret;
};
imports.wbg.__wbindgen_cast_4ad546bf309926d2 = function(arg0, arg1) {
// Cast intrinsic for `Closure(Closure { dtor_idx: 83, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 84, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
const ret = makeClosure(arg0, arg1, 83, __wbg_adapter_15);
return ret;
};
imports.wbg.__wbindgen_cast_6911d9a10774b555 = function(arg0, arg1) {
// Cast intrinsic for `Closure(Closure { dtor_idx: 856, function: Function { arguments: [Externref], shim_idx: 857, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
const ret = makeMutClosure(arg0, arg1, 856, __wbg_adapter_6);
imports.wbg.__wbindgen_cast_62a4aa30fc2b84ef = function(arg0, arg1) {
// Cast intrinsic for `Closure(Closure { dtor_idx: 50, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 51, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
const ret = makeClosure(arg0, arg1, 50, __wbg_adapter_15);
return ret;
};
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {