Promise.cast and Promise.resolve

Kevin Smith zenparsing at gmail.com
Tue Jan 28 17:45:03 PST 2014


>
>
> The V8 implementation provides it under the name `chain', with the
> obvious semantics.
>
>
I like chain too, and the V8 implementation in general.  However, note that
the V8 implementation does not comply with the current spec.  According to
the current spec, the *output* side of `then` is recursively unwrapped.
 This is, of course, incompatible with the AP2 design principle that the
consumer determines the unwrapping strategy, and not the provider.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140128/b0b865ee/attachment.html>


More information about the es-discuss mailing list