Skip to content

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

Merged
rbuckton merged 1 commit into
masterfrom
fix27935
Aug 12, 2019
Merged

Do not emit this for helpers at the top level of a strict-mode source file#32823
rbuckton merged 1 commit into
masterfrom
fix27935

Conversation

@rbuckton
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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

@dgoldstein0
Copy link
Copy Markdown

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

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

typescript sometimes uses this at module scope in es6 output

3 participants