diff --git a/app-e23e3c178059bfed.js b/app-e23e3c178059bfed.js index ee19531..ef276ee 100644 --- a/app-e23e3c178059bfed.js +++ b/app-e23e3c178059bfed.js @@ -238,31 +238,31 @@ function makeClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_6(arg0, arg1, arg2) { - wasm.closure342_externref_shim(arg0, arg1, arg2); + wasm.closure1338_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_9(arg0, arg1) { wasm.wasm_bindgen__convert__closures_____invoke__h63f40fc127867863(arg0, arg1); } -function __wbg_adapter_18(arg0, arg1) { - wasm.wasm_bindgen__convert__closures_____invoke__h9b9809ae38626823(arg0, arg1); -} - -function __wbg_adapter_21(arg0, arg1) { +function __wbg_adapter_12(arg0, arg1) { wasm.wasm_bindgen__convert__closures_____invoke__hd3aacab65926a4bc(arg0, arg1); } -function __wbg_adapter_24(arg0, arg1, arg2) { +function __wbg_adapter_15(arg0, arg1, arg2) { + wasm.closure342_externref_shim(arg0, arg1, arg2); +} + +function __wbg_adapter_28(arg0, arg1, arg2) { wasm.closure1288_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_33(arg0, arg1, arg2) { - wasm.closure1338_externref_shim(arg0, arg1, arg2); + wasm.closure346_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_36(arg0, arg1, arg2) { - wasm.closure346_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_36(arg0, arg1) { + wasm.wasm_bindgen__convert__closures_____invoke__h9b9809ae38626823(arg0, arg1); } function __wbg_adapter_325(arg0, arg1, arg2, arg3) { @@ -1256,7 +1256,7 @@ function __wbg_get_imports() { }; imports.wbg.__wbindgen_cast_0439d74fb177e761 = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 1269, function: Function { arguments: [], shim_idx: 1270, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 1269, __wbg_adapter_21); + const ret = makeMutClosure(arg0, arg1, 1269, __wbg_adapter_12); return ret; }; imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { @@ -1266,7 +1266,7 @@ function __wbg_get_imports() { }; imports.wbg.__wbindgen_cast_44e4175149bdbeb5 = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); + const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_15); return ret; }; imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) { @@ -1281,32 +1281,32 @@ function __wbg_get_imports() { }; imports.wbg.__wbindgen_cast_6c3bfa1df6d2d32d = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("ProgressEvent")], shim_idx: 346, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 341, __wbg_adapter_36); + const ret = makeMutClosure(arg0, arg1, 341, __wbg_adapter_33); return ret; }; imports.wbg.__wbindgen_cast_80000be82035453d = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); + const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_15); return ret; }; imports.wbg.__wbindgen_cast_881d25b30c5b9020 = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("Event")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); + const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_15); return ret; }; imports.wbg.__wbindgen_cast_976544c2059bf03a = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 1287, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1288, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 1287, __wbg_adapter_24); + const ret = makeMutClosure(arg0, arg1, 1287, __wbg_adapter_28); return ret; }; imports.wbg.__wbindgen_cast_af9cb6382b677e22 = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 1337, function: Function { arguments: [Externref], shim_idx: 1338, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 1337, __wbg_adapter_33); + const ret = makeMutClosure(arg0, arg1, 1337, __wbg_adapter_6); return ret; }; imports.wbg.__wbindgen_cast_cf2ea4f4774a59f7 = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 1259, function: Function { arguments: [], shim_idx: 1260, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 1259, __wbg_adapter_18); + const ret = makeClosure(arg0, arg1, 1259, __wbg_adapter_36); return ret; }; imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { @@ -1316,12 +1316,12 @@ function __wbg_get_imports() { }; imports.wbg.__wbindgen_cast_ea6fda770aac34b7 = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); + const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_15); return ret; }; imports.wbg.__wbindgen_cast_f57534dbf8b6e0ac = function(arg0, arg1) { // Cast intrinsic for `Closure(Closure { dtor_idx: 341, function: Function { arguments: [NamedExternref("MediaQueryList")], shim_idx: 342, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_6); + const ret = makeClosure(arg0, arg1, 341, __wbg_adapter_15); return ret; }; imports.wbg.__wbindgen_init_externref_table = function() { diff --git a/app-e23e3c178059bfed_bg.wasm b/app-e23e3c178059bfed_bg.wasm index 053ac11..ac271c8 100644 Binary files a/app-e23e3c178059bfed_bg.wasm and b/app-e23e3c178059bfed_bg.wasm differ diff --git a/index.html b/index.html index 1840f24..3a4c0bf 100644 --- a/index.html +++ b/index.html @@ -67,6 +67,6 @@ dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}})); - + diff --git a/sqlite3.js b/sqlite3.js index 3a68550..06f0ea3 100644 --- a/sqlite3.js +++ b/sqlite3.js @@ -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.closure694_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_8(arg0, arg1, arg2) { + wasm.closure52_externref_shim(arg0, arg1, arg2); } -function __wbg_adapter_13(arg0, arg1, arg2) { - wasm.closure35_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_15(arg0, arg1, arg2) { + wasm.closure693_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_194(arg0, arg1, arg2, arg3) { - wasm.closure709_externref_shim(arg0, arg1, arg2, arg3); + wasm.closure708_externref_shim(arg0, arg1, arg2, arg3); } const __wbindgen_enum_ReadableStreamType = ["bytes"]; @@ -956,11 +956,6 @@ function __wbg_get_imports() { const ret = arg0.write(arg1, arg2); return ret; }, arguments) }; - imports.wbg.__wbindgen_cast_1f928e962f742754 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 34, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 35, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 34, __wbg_adapter_13); - return ret; - }; imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { // Cast intrinsic for `Ref(String) -> Externref`. const ret = getStringFromWasm0(arg0, arg1); @@ -971,9 +966,9 @@ function __wbg_get_imports() { const ret = BigInt.asUintN(64, arg0); return ret; }; - imports.wbg.__wbindgen_cast_7342bdff31396438 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 693, function: Function { arguments: [Externref], shim_idx: 694, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 693, __wbg_adapter_6); + imports.wbg.__wbindgen_cast_bc850f17bc604271 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 692, function: Function { arguments: [Externref], shim_idx: 693, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. + const ret = makeMutClosure(arg0, arg1, 692, __wbg_adapter_15); return ret; }; imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { @@ -981,6 +976,11 @@ function __wbg_get_imports() { const ret = arg0; return ret; }; + imports.wbg.__wbindgen_cast_dd9f71b781afdbd7 = function(arg0, arg1) { + // Cast intrinsic for `Closure(Closure { dtor_idx: 51, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 52, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + const ret = makeClosure(arg0, arg1, 51, __wbg_adapter_8); + return ret; + }; imports.wbg.__wbindgen_init_externref_table = function() { const table = wasm.__wbindgen_export_1; const offset = table.grow(4); diff --git a/sqlite3_bg.wasm b/sqlite3_bg.wasm index 2dc4663..a86e18b 100644 Binary files a/sqlite3_bg.wasm and b/sqlite3_bg.wasm differ diff --git a/sqlite3mc.js b/sqlite3mc.js index 2f315a9..1bca6d2 100644 --- a/sqlite3mc.js +++ b/sqlite3mc.js @@ -237,16 +237,16 @@ function makeMutClosure(arg0, arg1, dtor, f) { CLOSURE_DTORS.register(real, state, state); return real; } -function __wbg_adapter_12(arg0, arg1, arg2) { - wasm.closure101_externref_shim(arg0, arg1, arg2); +function __wbg_adapter_6(arg0, arg1, arg2) { + wasm.closure857_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_15(arg0, arg1, arg2) { - wasm.closure858_externref_shim(arg0, arg1, arg2); + wasm.closure84_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_196(arg0, arg1, arg2, arg3) { - wasm.closure873_externref_shim(arg0, arg1, arg2, arg3); + wasm.closure872_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_aaf8170c5ce4acde = function() { return handleError(function (arg0, arg1) { + imports.wbg.__wbg_getRandomValues_050cadc9f56e1763 = function() { return handleError(function (arg0, arg1) { globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1)); }, arguments) }; imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) { @@ -969,14 +969,14 @@ function __wbg_get_imports() { const ret = BigInt.asUintN(64, arg0); return ret; }; - imports.wbg.__wbindgen_cast_4fef663bf350536e = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 100, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 101, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, 100, __wbg_adapter_12); + 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_779c8bccf5bc9dbb = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 857, function: Function { arguments: [Externref], shim_idx: 858, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 857, __wbg_adapter_15); + 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); return ret; }; imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) { diff --git a/sqlite3mc_bg.wasm b/sqlite3mc_bg.wasm index b9870a5..ed02c73 100644 Binary files a/sqlite3mc_bg.wasm and b/sqlite3mc_bg.wasm differ