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:
@@ -23,20 +23,20 @@
|
||||
|
||||
(assert_invalid
|
||||
(component
|
||||
(import "" (component))
|
||||
(import "a" (component))
|
||||
)
|
||||
"root-level component imports are not supported")
|
||||
|
||||
(assert_invalid
|
||||
(component
|
||||
(component (export ""))
|
||||
(component (export "a"))
|
||||
)
|
||||
"exporting a component from the root component is not supported")
|
||||
|
||||
(component
|
||||
(core module $m (func (export "")))
|
||||
(core instance $m (instantiate $m))
|
||||
(func (export "") (canon lift (core func $m "")))
|
||||
(func (export "a") (canon lift (core func $m "")))
|
||||
)
|
||||
|
||||
(assert_return (invoke ""))
|
||||
(assert_return (invoke "a"))
|
||||
|
||||
Reference in New Issue
Block a user