Incorrect ES5 transpilation for 'this' usage in lambda as a constructor default parameter #55637
Labels
Bug
A bug in TypeScript
Domain: JS Emit
The issue relates to the emission of JavaScript
Fix Available
A PR has been opened for this issue
Has Repro
This issue has compiler-backed repros: https://aka.ms/ts-repros
Milestone
π Search Terms
ES5, this alias
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?target=1&ts=5.2.2#code/MYGwhgzhAEDqBOYAOSCm9oG8BQ1rAHsA7CAF3gFdhSD4AKXPaANzBAEsATMU1aAXmh0KJMADNUALiwBfAJQCAfNFIALdhAB0rDt17DREuQpxMWbLj1R1M8gNyMZ2RknjtWvc7qt1SATzQAVUMpaDAiPzlpACMCAhBUcKxGPHhUUgp4IhVKVAc8JydsIlQAdzhEFHQ6OQcgA
π» Code
Target: ES5
π Actual behavior
π Expected behavior
No error (as with untranspiled version or with TS5.1.6)
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: