Skip to content

fix for vararg access in async functions#1096

Merged
Perryvw merged 1 commit intoTypeScriptToLua:async-awaitfrom
tomblind:async-vararg-fix
Aug 20, 2021
Merged

fix for vararg access in async functions#1096
Perryvw merged 1 commit intoTypeScriptToLua:async-awaitfrom
tomblind:async-vararg-fix

Conversation

@tomblind
Copy link
Collaborator

took a stab at fixing the vararg issues

@Perryvw Perryvw merged commit 01a0fcb into TypeScriptToLua:async-await Aug 20, 2021
Perryvw added a commit that referenced this pull request Aug 20, 2021
* Initial lualib promise class implementation

* First promise tests

* More promise tests

* Promise class implementation

* Implemented Promise.all

* Promise.any

* Promise.race

* Promise.allSettled

* fix prettier

* Add promise example usage test

* Added missing lualib dependencies for PromiseConstructor functions

* Immediately call then/catch/finally callbacks on promises that are already resolved

* Transform all references to Promise to __TS__Promise

* PR feedback

* Removed incorrect asyncs

* Add test for direct chaining

* Add test for finally and correct wrong behavior it caught

* Added test throwing in parallel and chained then onFulfilleds

* Fixed pull request link in ArrayIsArray lualib comment

* Initial async await

* Disallow await in top-level scope

* Add await rejection test

* Give await the correct lualib dependencies

* use coroutine.status instead of lastData

* Better top level await check

* Add tests for async lambdas and throws in async functions

* Moved toplevel await check to transformAwaitExpression and removed superfluous try/catch

* fix for vararg access in async functions (#1096)

Co-authored-by: Tom <tomblind@users.noreply.github.com>

Co-authored-by: Tom <26638278+tomblind@users.noreply.github.com>
Co-authored-by: Tom <tomblind@users.noreply.github.com>
sanikoyes pushed a commit to sanikoyes/TypeScriptToLua that referenced this pull request Sep 24, 2021
* Initial lualib promise class implementation

* First promise tests

* More promise tests

* Promise class implementation

* Implemented Promise.all

* Promise.any

* Promise.race

* Promise.allSettled

* fix prettier

* Add promise example usage test

* Added missing lualib dependencies for PromiseConstructor functions

* Immediately call then/catch/finally callbacks on promises that are already resolved

* Transform all references to Promise to __TS__Promise

* PR feedback

* Removed incorrect asyncs

* Add test for direct chaining

* Add test for finally and correct wrong behavior it caught

* Added test throwing in parallel and chained then onFulfilleds

* Fixed pull request link in ArrayIsArray lualib comment

* Initial async await

* Disallow await in top-level scope

* Add await rejection test

* Give await the correct lualib dependencies

* use coroutine.status instead of lastData

* Better top level await check

* Add tests for async lambdas and throws in async functions

* Moved toplevel await check to transformAwaitExpression and removed superfluous try/catch

* fix for vararg access in async functions (TypeScriptToLua#1096)

Co-authored-by: Tom <tomblind@users.noreply.github.com>

Co-authored-by: Tom <26638278+tomblind@users.noreply.github.com>
Co-authored-by: Tom <tomblind@users.noreply.github.com>
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