Skip to content

Fix incorrect "this" binding when there's a TypeScript this arg in scope #80

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
Mar 26, 2025

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Mar 26, 2025

Our mayUseLexicalThis guard was not fully guarding against treating a template's this as the lexically scoped one. This went unnoticed because to trigger the bug you also need babel to tell you that the identifier this is in scope, which normally won't happen, except in TypeScript with a this function argument.

Fixes #79

…scope

Our `mayUseLexicalThis` guard was not fully guarding against treating a template's `this` as the lexically scoped one. This went unnoticed because to trigger the bug you also need babel to tell you that the identifier `this` is in scope, which normally won't happen, except in TypeScript with a `this` function argument.
@ef4 ef4 added the bug Something isn't working label Mar 26, 2025
@ef4 ef4 changed the base branch from main to 2.x March 26, 2025 14:47
@ef4 ef4 merged commit acb695a into 2.x Mar 26, 2025
6 checks passed
This was referenced Mar 26, 2025
@NullVoxPopuli NullVoxPopuli deleted the fix-spurious-this branch March 26, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.4.0 Breaks against ember-beta
1 participant