Skip to content

Introduce new Promise API methods #3186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

galpeter
Copy link
Contributor

@galpeter galpeter commented Oct 2, 2019

The new API methods make it possible to get a Promise object's
result and it's state.

@galpeter galpeter added ecma builtins Related to ECMA built-in routines api Related to the public API ES2015 Related to ES2015 features labels Oct 2, 2019
@galpeter
Copy link
Contributor Author

galpeter commented Oct 2, 2019

Documentation will be added a bit later. First I would like to get a feedback on the API.

@rerobika
Copy link
Member

rerobika commented Oct 2, 2019

I support this idea! +1

@dbatyai
Copy link
Member

dbatyai commented Oct 16, 2019

The new functions look reasonable, I support this as well.

@galpeter galpeter changed the title [Proposal] Introduce new Promise API methods Introduce new Promise API methods Oct 22, 2019
@galpeter galpeter force-pushed the api_promise_new branch 2 times, most recently from 58e8bbe to 0080c31 Compare October 24, 2019 08:21
@galpeter
Copy link
Contributor Author

I've rebased and updated the PR with docs.

The new API methods make it possible to get a Promise object's
result and it's state.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
Copy link
Member

@rerobika rerobika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@dbatyai dbatyai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dbatyai dbatyai merged commit eebbed1 into jerryscript-project:master Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to the public API ecma builtins Related to ECMA built-in routines ES2015 Related to ES2015 features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants