try something else...
This commit is contained in:
parent
05ab0906d6
commit
97192d31be
5 changed files with 28 additions and 1 deletions
|
|
@ -170,6 +170,26 @@ export class StateBuddyTrace {
|
|||
}
|
||||
if (Symbol.dispose) StateBuddyTrace.prototype[Symbol.dispose] = StateBuddyTrace.prototype.free;
|
||||
|
||||
const StateBuddyTraceEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
||||
? { register: () => {}, unregister: () => {} }
|
||||
: new FinalizationRegistry(ptr => wasm.__wbg_statebuddytraceentry_free(ptr >>> 0, 1));
|
||||
|
||||
export class StateBuddyTraceEntry {
|
||||
|
||||
__destroy_into_raw() {
|
||||
const ptr = this.__wbg_ptr;
|
||||
this.__wbg_ptr = 0;
|
||||
StateBuddyTraceEntryFinalization.unregister(this);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
free() {
|
||||
const ptr = this.__destroy_into_raw();
|
||||
wasm.__wbg_statebuddytraceentry_free(ptr, 0);
|
||||
}
|
||||
}
|
||||
if (Symbol.dispose) StateBuddyTraceEntry.prototype[Symbol.dispose] = StateBuddyTraceEntry.prototype.free;
|
||||
|
||||
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
||||
|
||||
async function __wbg_load(module, imports) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue