Merge pull request #1307 from alexcrichton/fix-name

Fix name of "current thread ID" intrinsic
This commit is contained in:
Alex Crichton 2019-03-01 12:48:53 -06:00 committed by GitHub
commit 1299a2086f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}