Rename anyref to externref across the board

This commit is contained in:
Nick Fitzgerald
2020-05-20 11:55:30 -07:00
parent 5c39b74eb8
commit f28b3738ee
25 changed files with 151 additions and 130 deletions

View File

@@ -18,12 +18,12 @@ pub(crate) enum ExternHost {
}
impl wasm_extern_t {
fn anyref(&self) -> wasmtime::AnyRef {
fn externref(&self) -> wasmtime::ExternRef {
match &self.which {
ExternHost::Func(f) => f.anyref(),
ExternHost::Global(f) => f.anyref(),
ExternHost::Memory(f) => f.anyref(),
ExternHost::Table(f) => f.anyref(),
ExternHost::Func(f) => f.externref(),
ExternHost::Global(f) => f.externref(),
ExternHost::Memory(f) => f.externref(),
ExternHost::Table(f) => f.externref(),
}
}
}