|
const scope = context.pushScope(ScopeType.Function); |
|
const body = transformFunctionBodyContent(context, statement.body); |
|
const scope = context.pushScope(ScopeType.Function); |
|
scope.node = node; |
|
let bodyStatements = transformFunctionBodyContent(context, body); |
this break optimized varArg spread:
https://typescripttolua.github.io/play/#code/5.4/GYVwdgxgLglg9mABAFQKYGcoDEAUA6AgQwCcBzdALkULAE8BtAXQEoBvAKES8QAdiYwUfETLpm7AL7t2EADaF06FBigBhRB26IICTMRDQ4xYXhLkqNBiw2ct3PgKEFTo8VqkSgA
TypeScriptToLua/src/transformation/visitors/class/members/constructor.ts
Lines 31 to 32 in bd00c15
TypeScriptToLua/src/transformation/visitors/function.ts
Lines 170 to 172 in bd00c15
this break optimized varArg spread:
https://typescripttolua.github.io/play/#code/5.4/GYVwdgxgLglg9mABAFQKYGcoDEAUA6AgQwCcBzdALkULAE8BtAXQEoBvAKES8QAdiYwUfETLpm7AL7t2EADaF06FBigBhRB26IICTMRDQ4xYXhLkqNBiw2ct3PgKEFTo8VqkSgA