Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Scopes & closures": ch5, Future modules - Wrong keyword #664

Closed
vlindhol opened this issue Feb 15, 2016 · 1 comment
Closed

"Scopes & closures": ch5, Future modules - Wrong keyword #664

vlindhol opened this issue Feb 15, 2016 · 1 comment

Comments

@vlindhol
Copy link

In the final example in the Future modules subheading, the modules are imported with the following code:

// import the entire "foo" and "bar" modules
module foo from "foo";
module bar from "bar";

Shouldn't it be import rather than module? I tried googling the module keyword and didn't find it in the ES6 grammar definition. Or have I misunderstood something?

@getify
Copy link
Owner

getify commented Feb 15, 2016

This is more than 2 year old text... module was the keyword at the time, but it was subsequently consolidated with import. This issue will be addressed in the second edition updates. Thanks! :)

@getify getify closed this as completed Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants