Components: ignore type exports (for now). (#4488)
* Components: ignore type exports (for now). This commit updates component translation to ignore type exports for now. Components generated with `wit-component` contain type exports to give names to types used within the component's functions based on the component's wit definition. The intention is to allow bindings to be generated with meaningful names directly from a component. In the future, type exports (and imports) may be used for more than this purpose to support things like resource types. This commit effectively ignores type exports when translating the component as they are not useful to executing a component at this time. Closes #4415. * Code review feedback.
This commit is contained in:
@@ -67,6 +67,12 @@
|
||||
))
|
||||
)
|
||||
|
||||
;; Test to see if a component with a type export can be instantiated.
|
||||
(component
|
||||
(type string)
|
||||
(export "" (type 0))
|
||||
)
|
||||
|
||||
;; double-check the start function runs by ensuring that a trap shows up and it
|
||||
;; sees the wrong value for the global import
|
||||
(assert_trap
|
||||
|
||||
Reference in New Issue
Block a user