How can I synchronously determine a JavaScript Promise's state?

Ron Waldon jokeyrhyme at
Mon Jun 1 21:29:12 UTC 2015

I have lodged the following question on StackOverflow:

I have also lodged it as a proposal on Specifiction:

I have a pure JavaScript Promise (built-in implementation or poly-fill):

`var promise = new Promise(function (resolve, reject) { /* ... */ });`

>From the [specification](,
a Promise can be one of:

- 'settled' and 'resolved'
- 'settled' and 'rejected'
- 'pending'

I have a use case where I wish to interrogate the Promise synchronously and

- is the Promise settled?
- if so, is the Promise resolved?

It appears there is no API for synchronous interrogation of a Promise's
state. Can we please make this part of a future specification?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list