Incorrect ES5 transpilation for try/catch + super #55646
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
Milestone
π Search Terms
ES5, this alias
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?target=1&ts=5.2.2#code/IYIwzgLgTsDGEAJYBthjAgYge2wg3gFAJLYB2kUArvNlABRgAW2VyAJgCpNTYDuALgQhcyAKbAyASgLESCAJYAzBIxZsuPfjKLz5ELXwRkxRgKJReDAOQAFcWjEIoY6AE9rUgNxySAXwQxZDAnXT1SCmxxADpkbABzemsAeQBpTx89Pzls7MIUNAwAIWAoQIAPCDEydgwcPDDYckoaCDp6HV8Ed1lwhDAqAAcxBmgqMW8ugNhgCFgmVTEhKjIAazJ+aV7wpsiYuMTrCyshawQAakWENARjuilogFsxdGB4iczwgHov51coNxdEgDYYMJTAYIfKY5Qh5ExGEoMbxAA
π» Code
Target: ES5
π Actual behavior
π Expected behavior
No error
Additional information about the issue
In TS5.2.2 output
var _this = this;
has been removed, but_this
is still being used.The text was updated successfully, but these errors were encountered: