Rename anyref to externref across the board
This commit is contained in:
@@ -56,11 +56,11 @@ fn link_twice_bad() -> Result<()> {
|
||||
|
||||
// tables
|
||||
let ty = TableType::new(ValType::FuncRef, Limits::new(1, None));
|
||||
let table = Table::new(&store, ty, Val::AnyRef(AnyRef::Null))?;
|
||||
let table = Table::new(&store, ty, Val::ExternRef(ExternRef::Null))?;
|
||||
linker.define("", "", table.clone())?;
|
||||
assert!(linker.define("", "", table.clone()).is_err());
|
||||
let ty = TableType::new(ValType::FuncRef, Limits::new(2, None));
|
||||
let table = Table::new(&store, ty, Val::AnyRef(AnyRef::Null))?;
|
||||
let table = Table::new(&store, ty, Val::ExternRef(ExternRef::Null))?;
|
||||
assert!(linker.define("", "", table.clone()).is_err());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user