Skip to content

Fix super in down-level async method#10926

Merged
rbuckton merged 1 commit into
masterfrom
fix10862
Sep 15, 2016
Merged

Fix super in down-level async method#10926
rbuckton merged 1 commit into
masterfrom
fix10862

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

Fixes an issue with the emit for super property calls in async methods for down-level (ES5/3) async functions.

Fixes #10862

// CC: @mhegazy, @vladima

case SyntaxKind.FunctionExpression:
containingNonArrowFunction = <FunctionLikeDeclaration>currentParent;
if (!(containingNonArrowFunction.emitFlags & NodeEmitFlags.AsyncFunctionBody)) {
superScopeContainer = containingNonArrowFunction;
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.

we will have to do this for generators as well, correct?

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.

We will cross that bridge when we get to it.

@vladima
Copy link
Copy Markdown
Contributor

vladima commented Sep 15, 2016

👍

@rbuckton rbuckton merged commit 21c2c89 into master Sep 15, 2016
@rbuckton rbuckton deleted the fix10862 branch September 15, 2016 00:15
@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.

4 participants