Skip to content

fix #4141: Avoid redundant this access during async function lowering #4142

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 5 commits into from
Apr 23, 2025

Conversation

magic-akari
Copy link
Contributor

@thorn0
Copy link

thorn0 commented Apr 15, 2025

Tiny note from someone maintaining legacy codebases — this change might have similar side effects to this recent SWC issue. Just wanted to raise it in case it’s relevant. Appreciate the great work 🙏

@evanw evanw merged commit 7ed1684 into evanw:main Apr 23, 2025
8 checks passed
@magic-akari magic-akari deleted the fix/issue-4141 branch April 23, 2025 05:15
Copy link

@Randallstrader1221 Randallstrader1221 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

76166681060

@@ -241,7 +241,7 @@ func TestLowerAsyncFunctions(t *testing.T) {
}
`)
// Skip forwarding altogether when parameter evaluation obviously cannot throw
expectPrintedTarget(t, 2015, "async (a, b = 123) => {console.log(a, b);}", `(a, b = 123) => __async(this, null, function* () {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • @gh repo clone microsoft/vscode-mock-debug

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.

Async transformation causes this access before super() call
4 participants