ES6 promises: [[AlreadyResolved]] – needed?

Axel Rauschmayer axel at rauschma.de
Wed Sep 24 21:49:31 PDT 2014


https://people.mozilla.org/~jorendorff/es6-draft.html#sec-createresolvingfunctions

Each resolving function R uses R.[[AlreadyResolved]].[[value]] to prevent the same promise from being resolved twice.

Question: Couldn’t R.[[Promise]].[[PromiseState]] be used, instead?

-- 
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140925/abc6ebb5/attachment.html>


More information about the es-discuss mailing list