Skip to content
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

Default aliasing bug fix #4829

Merged
merged 3 commits into from Sep 17, 2015
Merged

Conversation

weswigham
Copy link
Member

Fixes #4827

@weswigham
Copy link
Member Author

@DanielRosenwasser you wanna check this over before merging it?

@mhegazy
Copy link
Contributor

mhegazy commented Sep 17, 2015

👍

var name = (<ImportSpecifier>declaration).propertyName || (<ImportSpecifier>declaration).name;
var identifier = getSourceTextOfNodeFromSourceFile(currentSourceFile, name);
if (languageVersion == ScriptTarget.ES3 && identifier === "default") {
write(`["default"]`);
Copy link
Member

Choose a reason for hiding this comment

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

Just use single quotes.

Copy link
Member Author

Choose a reason for hiding this comment

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

But that would fail the linter.

Copy link
Member Author

Choose a reason for hiding this comment

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

On that note, we should consider merging #4458 at some point.

@vladima
Copy link
Contributor

vladima commented Sep 17, 2015

👍

weswigham added a commit that referenced this pull request Sep 17, 2015
@weswigham weswigham merged commit e200dad into microsoft:master Sep 17, 2015
@weswigham weswigham deleted the default-aliasing-bug branch August 17, 2017 23:03
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

None yet

5 participants