restrictions on module import export names

Calvin Metcalf calvin.metcalf at gmail.com
Wed Jan 29 18:45:35 PST 2014


ok so would this be accurate https://gist.github.com/calvinmetcalf/8701624 ?

the syntax does make it impossible to write something equivalent to

```js
let app = module.exports = require('express')();
```

On Wed, Jan 29, 2014 at 6:40 PM, Jason Orendorff
<jason.orendorff at gmail.com>wrote:

> On Wed, Jan 29, 2014 at 3:39 PM, Calvin Metcalf
> <calvin.metcalf at gmail.com> wrote:
> > *would be equivalent of it was allowed
> >
> >[...]
> >> So the following are equivalent?
> >>
> >> ```js
> >> export default foo();
> >> export let default = foo();
> >> ```
>
> Yes.
>
> -j
>



-- 
-Calvin W. Metcalf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140129/8db025fa/attachment.html>


More information about the es-discuss mailing list