Skip to content

Fixes for Optimize PR#1312

Merged
Perryvw merged 4 commits intoTypeScriptToLua:masterfrom
GlassBricks:fix-func-calls
Jul 19, 2022
Merged

Fixes for Optimize PR#1312
Perryvw merged 4 commits intoTypeScriptToLua:masterfrom
GlassBricks:fix-func-calls

Conversation

@GlassBricks
Copy link
Copy Markdown
Contributor

@GlassBricks GlassBricks commented Jul 19, 2022

Fixes the following things that were broken with the last PR:

Fixes function.apply(...) and similar calls, when the function is declared using an explicit arrow-function type (const foo: (args)=>ret).

Fixes an optimization with language-extensions detection (broken as in didn't actually optimize, not wrong behavior). Another 6% transpile time speedup.

Fixes optional chaining breaking language extensions. This wasn't caught in the tests previously before because strictNullChecks needs to be on.

@GlassBricks GlassBricks changed the title Fix function prototype calls for explicitly given function types Fixes for Optimize PR Jul 19, 2022
@Perryvw Perryvw merged commit c962837 into TypeScriptToLua:master Jul 19, 2022
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.

2 participants