Futures

Kevin Smith zenparsing at gmail.com
Fri Apr 26 11:25:35 PDT 2013


Actually, I may have gotten it terribly wrong (apologies).  In my prototype
implementation, the following:

    Future.accept(Future.resolve(1)).then(value => {

        console.log(value !== 1);
        return Future.accept(Future.resolve(1));

    }).then(value => {

        console.log(value === 1);
    });

logs

- true
- true

Is that what it should be doing, according to the DOM spec?  Anne, Alex?

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130426/5afb1e04/attachment.html>


More information about the es-discuss mailing list