Module: export *

Sam Tobin-Hochstadt samth at cs.indiana.edu
Thu Oct 31 07:39:05 PDT 2013


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
>


More information about the es-discuss mailing list