Using await inside inline async function doesn't pass constructor arguments correctly (target ES5) #12262
Labels
Bug
A bug in TypeScript
Domain: Transforms
Relates to the public transform API
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 2.1.1-rc
Code
Expected behavior:
Expected the result of getValue to be passed as value to constructors' name parameter.
Actual behavior:
The constructor is called with undefined.
The generated javascript uses the following state machine:
The result of getValue() is passed to the call to get the constructor (_a.apply) and the actual constructor is called with no arguments (the () at the end)
The text was updated successfully, but these errors were encountered: