-
Notifications
You must be signed in to change notification settings - Fork 787
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 feature: Modules: Tracking Issue #1000
Comments
We need to discuss in Wednesday meeting on whether we need to expose an API to parse using different start symbols and the details on it. In ES5, the only start symbol is |
For now, Script vs Module can be handled just like in commit 85fc2f4 from the harmony branch. |
FWIW We've found it useful already (at FB) to add a (@ariya feel free to say you told me so: #290 (comment)) Worth considering here too. We found it to be super convenient to be able to opt in to disabling implicit-strict in order to switch existing CJS (etc) modules over to ES6 before having a chance to go through and audit for strict-safety. |
@jeffmo that's pretty interesting. |
I plan to work on the modules, at least taking the bulk of the work. |
implemented in #1149 |
Syntax:
Spec:
Remaining Tasks:
export default function() {}
Should parse the function as a nameless FuncDecl #311Literal
instead ofModuleSpecifier
forImportDeclaration
'ssource
field. #1077export default (1 + 42);
does not parse correctly #1087export default AN_EXPRESSION
#1088The text was updated successfully, but these errors were encountered: