mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-20 08:16:31 +00:00
Fix name of "current thread ID" intrinsic
This was accidentally renamed in the transition to `walrus`, but upstream rust-lang/rust still uses the old name so let's switch back to that.
This commit is contained in:
@ -388,9 +388,9 @@ fn implement_thread_intrinsics(module: &mut Module, globals: &Globals) -> Result
|
||||
let ty = module.types.get(function.ty());
|
||||
|
||||
match &import.name[..] {
|
||||
"__wbindgen_thread_id" => {
|
||||
"__wbindgen_current_id" => {
|
||||
if !ty.params().is_empty() || ty.results() != &[ValType::I32] {
|
||||
bail!("`__wbindgen_thread_id` intrinsic has the wrong signature");
|
||||
bail!("`__wbindgen_current_id` intrinsic has the wrong signature");
|
||||
}
|
||||
map.insert(function.id(), Intrinsic::GetThreadId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user