-
Notifications
You must be signed in to change notification settings - Fork 12.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
ES6 modules default exported function/class/generator name is not declared #5447
Comments
is this fixed in |
Not yet. I haven't had a chance to look at it. |
It looks like an earlier fix (41e3973) prevents exported identifiers from being available to namespaces that have merged with the module in question. It doesn't take into account that |
@WangJi and @falsandtru can you give tonight's |
Tried on Version
is complied into
|
This bug fix indeed only fixes the name resolution, not the emit. Although the emit is wrong for classes but not functions. I'll open a separate bug for the incorrect emit. |
And it only happens when the target is ES6, not ES5. |
Turns out the bug is already known: #5594 |
http://www.ecma-international.org/ecma-262/6.0/#sec-source-text-module-records
http://www.ecma-international.org/ecma-262/6.0/#table-42
The text was updated successfully, but these errors were encountered: