Update the wasm-tools family of crates (#5310)
Most of the changes here are the updates to the component model which includes optional URL fields in imports/exports.
This commit is contained in:
@@ -88,12 +88,12 @@ fn cannot_serialize_exported_module() -> Result<()> {
|
||||
&engine,
|
||||
r#"(component
|
||||
(core module $m)
|
||||
(export "" (core module $m))
|
||||
(export "a" (core module $m))
|
||||
)"#,
|
||||
)?;
|
||||
let mut store = Store::new(&engine, ());
|
||||
let instance = Linker::new(&engine).instantiate(&mut store, &component)?;
|
||||
let module = instance.get_module(&mut store, "").unwrap();
|
||||
let module = instance.get_module(&mut store, "a").unwrap();
|
||||
assert!(module.serialize().is_err());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user