[Bug 24291] Add a Promise type to WebIDL, and make it not distinguishable from anything


Jonas Sicking <jonas@sicking.cc> changed:

           What    |Removed                     |Added
                 CC|                            |jonas@sicking.cc

--- Comment #5 from Jonas Sicking <jonas@sicking.cc> ---
Note that it is debated if Promise.cast(x) should mutate x (by freezing it).
This is discussed in


If the outcome of that discussion is indeed to freeze the passed in value, that
likely makes Promise.cast inappropriate to ever call implicitly, such as during
a type conversion.

In that case using Promise.resolve might be more appropriate.

You are receiving this mail because:
You are on the CC list for the bug.

Received on Thursday, 23 January 2014 00:55:51 UTC