mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Mass rename anyref to externref (#2142)
Updates a mess of dependencies and tracks the most recent version of the reference types specification.
This commit is contained in:
@ -13,12 +13,12 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
walrus = "0.16.0"
|
||||
walrus = "0.17.0"
|
||||
|
||||
[dev-dependencies]
|
||||
rayon = "1.0"
|
||||
wasmprinter = "0.2"
|
||||
wast = "15.0"
|
||||
wast = "17.0"
|
||||
wat = "1.0"
|
||||
|
||||
[[test]]
|
||||
|
@ -162,12 +162,10 @@ fn xform_one(
|
||||
round_up_to_alignment(results_size, 8) + 8
|
||||
}
|
||||
walrus::ValType::V128 => round_up_to_alignment(results_size, 16) + 16,
|
||||
walrus::ValType::Anyref | walrus::ValType::Funcref | walrus::ValType::Nullref => {
|
||||
anyhow::bail!(
|
||||
"cannot multi-value transform functions that return \
|
||||
walrus::ValType::Externref | walrus::ValType::Funcref => anyhow::bail!(
|
||||
"cannot multi-value transform functions that return \
|
||||
reference types, since they can't go into linear memory"
|
||||
)
|
||||
}
|
||||
),
|
||||
};
|
||||
}
|
||||
// Round up to 16-byte alignment, since that's what LLVM's emitted Wasm code
|
||||
@ -286,9 +284,7 @@ fn xform_one(
|
||||
);
|
||||
offset += 16;
|
||||
}
|
||||
walrus::ValType::Anyref | walrus::ValType::Funcref | walrus::ValType::Nullref => {
|
||||
unreachable!()
|
||||
}
|
||||
walrus::ValType::Externref | walrus::ValType::Funcref => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user