Skip to content

Do not emit this for helpers at the top level of a strict-mode source file #32823

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

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

rbuckton
Copy link
Contributor

This PR changes our emit to avoid adding a this keyword to some helpers when at the top level of a strict-mode source file.

Fixes #27935

@rbuckton
Copy link
Contributor Author

@weswigham

@rbuckton rbuckton changed the title Do not emit his for __awaiter helper when at the top level of a stri… Do not emit this for helpers at the top level of a strict-mode source file Aug 12, 2019
@rbuckton rbuckton merged commit b3268a7 into master Aug 12, 2019
@rbuckton rbuckton deleted the fix27935 branch August 12, 2019 20:33
@dgoldstein0
Copy link

Super stoked for this! what typescript version can we expect this to be released in?

@dgoldstein0
Copy link

... I see the issue that references this commit is tagged as typescript 3.6.1 so I'm going to assume that's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

typescript sometimes uses this at module scope in es6 output
3 participants