Module: export *

Erik Arvidsson erik.arvidsson at gmail.com
Thu Oct 31 08:06:32 PDT 2013


Make sense but I'm not sure it is needed/desired.

Where is this documented?


On Thu, Oct 31, 2013 at 10:39 AM, Sam Tobin-Hochstadt
<samth at cs.indiana.edu>wrote:

> This exports all of the declarations defined in the current module.  So:
>
> ```
> let x = 1;
> class foo {};
> export *;
> ```
>
> exports both `x` and `foo`.
>
> Sam
>
> On Thu, Oct 31, 2013 at 10:02 AM, Erik Arvidsson
> <erik.arvidsson at gmail.com> wrote:
> > Both the wiki and the ES6 draft have the following as valid
> > ExportDeclaration:
> >
> >   export *
> >
> > (without a `from ModuleSpecifier`)
> >
> > What is the intended semantics for that?
> >
> > --
> > erik
> >
> > _______________________________________________
> > es-discuss mailing list
> > es-discuss at mozilla.org
> > https://mail.mozilla.org/listinfo/es-discuss
> >
>



-- 
erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131031/e3c3912c/attachment.html>


More information about the es-discuss mailing list