Skip to content

Fix syntax error in __awaiter when running in ES3#11431

Merged
rbuckton merged 1 commit into
masterfrom
awaiterInES3
Oct 7, 2016
Merged

Fix syntax error in __awaiter when running in ES3#11431
rbuckton merged 1 commit into
masterfrom
awaiterInES3

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

@rbuckton rbuckton commented Oct 6, 2016

The __awaiter helper does not work in ES3 due to a syntax error for the call generator.throw(value), since throw is a reserved word. This change modified __awaiter to call generator["throw"](value) instead.

Fixes #11280

@rbuckton
Copy link
Copy Markdown
Contributor Author

rbuckton commented Oct 6, 2016

// CC: @mhegazy

@rbuckton
Copy link
Copy Markdown
Contributor Author

rbuckton commented Oct 6, 2016

Also fixed in microsoft/tslib@0a43c5c

@rbuckton rbuckton merged commit 9c0d6b2 into master Oct 7, 2016
@rbuckton rbuckton deleted the awaiterInES3 branch October 7, 2016 00:55
@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.

3 participants