Skip to content

Commit

Permalink
deploy: d72611f
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jan 11, 2025
1 parent 8601dad commit d9895b4
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion demo/flutter_bootstrap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 33 additions & 33 deletions demo/pkg/rust_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ function makeMutClosure(arg0, arg1, dtor, f) {
return real;
}
function __wbg_adapter_34(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h04090ace25e998b7(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h533cb7f62c7762a4(arg0, arg1, addHeapObject(arg2));
}

function __wbg_adapter_37(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1b91e8d22d826896(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h39b92d74b4ebf135(arg0, arg1, addHeapObject(arg2));
}

/**
Expand Down Expand Up @@ -324,9 +324,10 @@ __exports.receive_transfer_closure = function(payload, transfer) {
};

/**
* @param {number} ptr
*/
__exports.wasm_start_callback = function() {
wasm.wasm_start_callback();
__exports.frb_dart_opaque_drop_thread_box_persistent_handle = function(ptr) {
wasm.frb_dart_opaque_drop_thread_box_persistent_handle(ptr);
};

/**
Expand All @@ -343,10 +344,9 @@ __exports.frb_dart_opaque_dart2rust_encode = function(handle, dart_handler_port)
};

/**
* @param {number} ptr
*/
__exports.frb_dart_opaque_drop_thread_box_persistent_handle = function(ptr) {
wasm.frb_dart_opaque_drop_thread_box_persistent_handle(ptr);
__exports.wasm_start_callback = function() {
wasm.wasm_start_callback();
};

/**
Expand All @@ -359,7 +359,7 @@ __exports.frb_dart_opaque_rust2dart_decode = function(ptr) {
};

function __wbg_adapter_122(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1cc492df51430936(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
wasm.wasm_bindgen__convert__closures__invoke2_mut__h43d503b3778586be(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

const WorkerPoolFinalization = (typeof FinalizationRegistry === 'undefined')
Expand Down Expand Up @@ -487,10 +487,6 @@ function __wbg_get_imports() {
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbindgen_is_falsy = function(arg0) {
const ret = !getObject(arg0);
return ret;
};
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
Expand All @@ -501,8 +497,9 @@ function __wbg_get_imports() {
imports.wbg.__wbg_error_6f59e13aeb612ec7 = function(arg0, arg1) {
console.error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
queueMicrotask(getObject(arg0));
imports.wbg.__wbindgen_is_falsy = function(arg0) {
const ret = !getObject(arg0);
return ret;
};
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
const ret = getObject(arg0).queueMicrotask;
Expand All @@ -512,6 +509,22 @@ function __wbg_get_imports() {
const ret = typeof(getObject(arg0)) === 'function';
return ret;
};
imports.wbg.__wbindgen_link_fc1eedd35dc7e0a6 = function(arg0) {
const ret = "data:application/javascript," + encodeURIComponent(`onmessage = function (ev) {
let [ia, index, value] = ev.data;
ia = new Int32Array(ia.buffer);
let result = Atomics.wait(ia, index, value);
postMessage(result);
};
`);
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
queueMicrotask(getObject(arg0));
};
imports.wbg.__wbg_waitAsync_5d743fc9058ba01a = function() {
const ret = Atomics.waitAsync;
return addHeapObject(ret);
Expand All @@ -532,19 +545,6 @@ function __wbg_get_imports() {
const ret = getObject(arg0).value;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_link_fc1eedd35dc7e0a6 = function(arg0) {
const ret = "data:application/javascript," + encodeURIComponent(`onmessage = function (ev) {
let [ia, index, value] = ev.data;
ia = new Int32Array(ia.buffer);
let result = Atomics.wait(ia, index, value);
postMessage(result);
};
`);
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
const ret = new Error();
return addHeapObject(ret);
Expand Down Expand Up @@ -779,16 +779,16 @@ function __wbg_get_imports() {
const ret = wasm.memory;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper389 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 149, __wbg_adapter_34);
imports.wbg.__wbindgen_closure_wrapper360 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 139, __wbg_adapter_34);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper441 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 171, __wbg_adapter_37);
imports.wbg.__wbindgen_closure_wrapper431 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 167, __wbg_adapter_37);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper442 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 171, __wbg_adapter_37);
imports.wbg.__wbindgen_closure_wrapper433 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 167, __wbg_adapter_37);
return addHeapObject(ret);
};

Expand Down
Binary file modified demo/pkg/rust_lib_bg.wasm
Binary file not shown.

0 comments on commit d9895b4

Please sign in to comment.