Skip to content

Support foreign thenables in resolve() #45

@jsor

Description

@jsor

Allow foreign promises to be turned into trusted promises by checking method_exists($promiseOrValue, 'then').
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions