Skip to content

Allow exporting a binding before its declaration#14700

Merged
sandersn merged 1 commit intomicrosoft:masterfrom
Jessidhia:allow-export-specifier-reference
Apr 17, 2017
Merged

Allow exporting a binding before its declaration#14700
sandersn merged 1 commit intomicrosoft:masterfrom
Jessidhia:allow-export-specifier-reference

Conversation

@Jessidhia
Copy link
Copy Markdown

Fixes #14679

@msftclas
Copy link
Copy Markdown

@Kovensky,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

export { x }
const x = 'x'

export { Y as Z }
Copy link
Copy Markdown
Author

@Jessidhia Jessidhia Mar 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strangely, this was not an error; only const and let were errors, even though class Foo {} has the exact same behavior as let Foo = class {} (no hoisting, has TDZ).

@RyanCavanaugh
Copy link
Copy Markdown
Member

LGTM

@msftclas
Copy link
Copy Markdown

@Kovensky, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, Microsoft Pull Request Bot

@RyanCavanaugh
Copy link
Copy Markdown
Member

Last call before I merge this

@sandersn
Copy link
Copy Markdown
Member

Sorry, looks like we forgot about this one. I'll merge from master and then merge the PR once Travis runs one more time.

@sandersn sandersn merged commit 61ebcb4 into microsoft:master Apr 17, 2017
@sandersn
Copy link
Copy Markdown
Member

OK, I manually merged after following github's instructions, which don't automatically trigger Travis. So...uh...I'm watching Travis build on master right now. 😅

@Jessidhia Jessidhia deleted the allow-export-specifier-reference branch May 31, 2017 09:12
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants