mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 12:31:22 +00:00
Merge pull request #1682 from alexcrichton/update-walrs
Update to walrus 0.9.0
This commit is contained in:
@ -18,9 +18,9 @@ log = "0.4"
|
||||
rustc-demangle = "0.1.13"
|
||||
serde_json = "1.0"
|
||||
tempfile = "3.0"
|
||||
walrus = "0.8.0"
|
||||
walrus = "0.9.0"
|
||||
wasm-bindgen-anyref-xform = { path = '../anyref-xform', version = '=0.2.48' }
|
||||
wasm-bindgen-shared = { path = "../shared", version = '=0.2.48' }
|
||||
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.48' }
|
||||
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.48' }
|
||||
wasm-webidl-bindings = "0.1.2"
|
||||
wasm-webidl-bindings = "0.2.0"
|
||||
|
@ -152,13 +152,8 @@ impl WasmBindgenDescriptorsSection {
|
||||
let ty = module.funcs.get(wbindgen_describe_closure).ty();
|
||||
for (func, (call_instr, descriptor)) in func_to_descriptor {
|
||||
let import_name = format!("__wbindgen_closure_wrapper{}", func.index());
|
||||
let id = module.add_import_func("__wbindgen_placeholder__", &import_name, ty);
|
||||
let import_id = module
|
||||
.imports
|
||||
.iter()
|
||||
.find(|i| i.name == import_name)
|
||||
.unwrap()
|
||||
.id();
|
||||
let (id, import_id) =
|
||||
module.add_import_func("__wbindgen_placeholder__", &import_name, ty);
|
||||
module.funcs.get_mut(id).name = Some(import_name);
|
||||
|
||||
let local = match &mut module.funcs.get_mut(func).kind {
|
||||
|
Reference in New Issue
Block a user