Make multiple exports additive
noteflakes opened this issue · 0 comments
noteflakes commented
Currently multiple calls to export
or export_default
have an undefined behaviour. We need to
be able to support multiple calls to export
as well as future stuff like export_from_receiver
.
To do this we'll:
- Put args passed to
export
andexport_XXX
in a list say@deferred_exports
, with location info for each call. - Perform export after module has loaded.
- Test additive exports.
- Raise error if
export
andexport_default
are mixed