Skip to main content

exports

Function exports 

Source
pub fn exports<A: IVm>(module: Module<A>) -> Result<Object<A>, Any<A>>
Expand description

A compiled module, and its export object read through the runtime value. module instantiated with the runtime value: its export object, or what it threw. A value that is not an object is refused with a TypeError, since no compiled module answers one; every consumer that runs a module reads its exports through this, so the refusal is said once.