await
does not respect this
types in .then
method
#47711
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Bug Report
π Search Terms
promise, async, await, then, method, this, type
π Version & Regression Information
β― Playground Link
Link
π» Code
π Actual behavior
Awaiting a
Thenable
with a user-definedthis
type in the.then
method does not respect the invariants imposed by thethis
type.π Expected behavior
Awaiting a
Thenable
with a user-definedthis
type in the.then
method should respect the invariants imposed by thethis
type and produce the same error as making an explicit call to.then
.The text was updated successfully, but these errors were encountered: