Open JavaScriptBach opened 4 months ago
I ran the parser on Typescript and found that function (this) gets incorrectly transformed to this =>. The result was invalid syntax.
function (this)
this =>
this is a special case and should not be transformed; see https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function
this
Thanks for reporting. Which transformer did you use?
Are you up for fixing the issue?
I ran the parser on Typescript and found that
function (this)
gets incorrectly transformed tothis =>
. The result was invalid syntax.this
is a special case and should not be transformed; see https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function