Skip to content

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

Merged
evanw merged 5 commits intoevanw:mainfrom
magic-akari:fix/issue-4141
Apr 23, 2025
Merged

fix #4141: Avoid redundant this access during async function lowering#4142
evanw merged 5 commits intoevanw:mainfrom
magic-akari:fix/issue-4141

Conversation

@magic-akari
Copy link
Copy Markdown
Contributor

@thorn0
Copy link
Copy Markdown

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
Copy Markdown

@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

}
`)
// 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* () {
Copy link
Copy Markdown

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