Skip to content

Fixes #5789.#5841

Merged
rbuckton merged 4 commits into
masterfrom
fixAsyncReferencedImport
Dec 1, 2015
Merged

Fixes #5789.#5841
rbuckton merged 4 commits into
masterfrom
fixAsyncReferencedImport

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

This worked previously, as the approach we were using in the past was checking the type as an expression which marked the import as referenced. That approach ran into issues with type aliases, which were addressed in a recent PR. However, there wasn't a test defined to capture this behavior. This PR fixes the issue directly and adds a test to ensure there will be no future regressions.

Edit by @DanielRosenwasser: Fixes #5789

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should not this be task_1.Task?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, didn't catch that one. I've pushed an update for this.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Dec 1, 2015

can we add a test with async getter.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Dec 1, 2015

and would not say no to other tests as well, with aliases and imports and internal modules as well.

@rbuckton
Copy link
Copy Markdown
Contributor Author

rbuckton commented Dec 1, 2015

@mhegazy: Async getters are not in the formal spec proposal for Async functions.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Dec 1, 2015

👍

@rbuckton
Copy link
Copy Markdown
Contributor Author

rbuckton commented Dec 1, 2015

I'll add a few more tests and merge.

rbuckton added a commit that referenced this pull request Dec 1, 2015
@rbuckton rbuckton merged commit 7d920c2 into master Dec 1, 2015
@rbuckton rbuckton deleted the fixAsyncReferencedImport branch December 1, 2015 23:04
@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.

Async/Await with custom promise when targeting ES6 and CommonJS

3 participants