W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2014

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 23 Jan 2014 00:55:48 +0000
To: public-script-coord@w3.org
Message-ID: <bug-24291-3890-MrlCI3LZBP@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24291

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

https://github.com/domenic/promises-unwrapping/issues/79

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:51 UTC