Another, maybe simpler way to put this:

`Promise.resolve` needs to become idempotent, i.e. for all values `x` the expression

    Promise.resolve(x)

must behave exactly as the expression

    Promise.resolve(Promise.resolve(x));

where it accesses `x.then` only exactly once. The current spec would test for it twice, which even gives way to fulfilling promises with thenables - if only the `then` method is attached to your object after you have resolved your promise with it. Which could cause some quite unexpected results.

 Bergi
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to