Skip to content

Fix optimized vararg spread with casts#1193

Merged
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
GlassBricks:optimized-vararg-spread-with-cast
Dec 21, 2021
Merged

Fix optimized vararg spread with casts#1193
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
GlassBricks:optimized-vararg-spread-with-cast

Conversation

@GlassBricks
Copy link
Copy Markdown
Contributor

Fixes #1143.

Also fixes for other outer expressions.

const catchParameter = statement.catchClause.variableDeclaration
? transformIdentifier(context, statement.catchClause.variableDeclaration.name as ts.Identifier)
: undefined;
const catchParameters = () => (catchParameter ? [lua.cloneIdentifier(catchParameter)] : []);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened here, this seems like the change from the other branch? Guess you need to merge master into this branch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, somehow those changes made it here.
I just force pushed a new commit without those changes

Also fixes for other outer expressions.
@GlassBricks GlassBricks force-pushed the optimized-vararg-spread-with-cast branch from b63bf86 to 511161d Compare December 20, 2021 23:39
@Perryvw Perryvw merged commit c8d8c73 into TypeScriptToLua:master Dec 21, 2021
@GlassBricks GlassBricks deleted the optimized-vararg-spread-with-cast branch March 16, 2022 16:25
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.

no table.unpack optimization when using cast to any[]

2 participants