A different semantics for WeakMap#get default value

Mark S. Miller erights at google.com
Thu Jan 19 09:27:53 PST 2012

I will try to write a complete proposal and settle it at the March meeting.
I'll propose today that this be on the March agenda. I'll keep it extremely

On Thu, Jan 19, 2012 at 5:36 AM, Andreas Rossberg <rossberg at google.com>wrote:

> On 19 January 2012 09:00, Andrea Giammarchi <andrea.giammarchi at gmail.com>
> wrote:
> > Out of curiosity, Chrome experimental flag does not support get(key,
> > defaultValue) but get(key) only ... is this something missing or Map and
> > WeakMap will never support officially the second get() argument?
> Chrome/V8 simply implements what the current proposals say:
> http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets
> http://wiki.ecmascript.org/doku.php?id=harmony:weak_maps
> Of course, we are happy to adapt if the proposals get extended along
> the lines you mention.
> /Andreas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120119/8f6fa47c/attachment.html>

More information about the es-discuss mailing list