-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
--harmony_modules flag not work #2976
Comments
Harmony modules aren't implemented yet, see https://nodejs.org/en/docs/es6/. As a rule of thumb, if a feature requires a flag to enable, expect it to be incomplete or broken. |
Just out of curiosity, why is there even a flag to enable support for an unsupported feature? If it does nothing, it's just confusing a lot of people who're expecting |
@Alhadis It comes from a dependency -- V8. |
Alright, well, that implies that V8 does support modules to some extent, but any supported features that it exposes are inaccessible to NodeJS. Or am I wrong? |
No it doesn't really support modules at this time. Not ES6 modules anyways. There was some old "modules" code laying around in there and that flag enables it for testing. Or used to anyways.
|
When use ES6 module feature like this
it throw an error
My node is the 4.0.0 version
The text was updated successfully, but these errors were encountered: