Killing `Promise.fulfill`

Tab Atkins Jr. jackalmage at gmail.com
Mon Aug 19 15:34:53 PDT 2013


On Mon, Aug 19, 2013 at 11:13 AM, Domenic Denicola
<domenic at domenicdenicola.com> wrote:
> Tab and I think the solution to this is to:
>
> - Kill `Promise.fulfill`, and of course also the `fulfill` option to the promise initializer.
> - Change `flatMap` to operate on resolved values, so that `Promise.resolve(foreverPending).flatMap(x => assert(x === foreverPending))` works.

Note that both of these are just name changes, not functionality
changes.  (Killing the old Promise.resolve() semantics is a
functionality change, but not these two.)

~TJ


More information about the es-discuss mailing list