Closed jugglinmike closed 8 years ago
This looks great! Can you please add your name to the CLA and re-run CI by amending and force-pushing? See the CI failure for the exact email address to use in case you're unsure.
Can you add tests for let a; export default function a(){}
and let a; export default class a{}
?
Fixed by #297.
The string "default" is only assigned to the [[LocalName]] field of ExportEntry records. By incorrectly using that string as a synthetic value for [[ExportName]], the parser cannot detect cases where an export which is explicitly named "default" collides with a default export as specified via
export default
.Update the parser to correctly assign the value "default" to [[ExportName]] in these cases. Remove unnecessary logic concerning each entry's [[LocalName]] value.
Source: http://www.ecma-international.org/ecma-262/6.0/#sec-exports-static-semantics-exportentries