This type of boilerplate may not be processed properly by AMD
optimizers that insert module IDs into the define call when multiple
modules are combined together. While the above may work with the
requirejs optimizer, it is not guaranteed to work in the future. I
still prefer the define() call
http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets
Currently, using Object.is() is hard-coded. But one could allow a comparator
function being handed in (with Object.is being the default).
--
Dr. Axel Rauschmayer
a...@rauschma.de
home: rauschma.de
twitter:
Hi,
Maps [1] and WeakMaps [2] are very similar in their API. Since neither
proposal discusses how they should interact with each other, I was
wondering what is supposed to happen when trying to use the API of one
on the other.
-
var m = new Map();
var key = {};
m.set(key, 37);
(sorry, was in a small vacation, can't answer earlier)
Yes, I'm perfectly aware about what host objects may do (there is even
wide-spread phrase in JS community: do not trust to host objects, they can
do almost anything).
From this viewpoint, if to treat these proxies as host objects, then in
On Tue, Dec 27, 2011 at 7:15 AM, David Bruant bruan...@gmail.com wrote:
Hi,
Maps [1] and WeakMaps [2] are very similar in their API. Since neither
proposal discusses how they should interact with each other, I was
wondering what is supposed to happen when trying to use the API of one
on the
Le 27/12/2011 19:14, Mark S. Miller a écrit :
On Tue, Dec 27, 2011 at 7:15 AM, David Bruant bruan...@gmail.com
mailto:bruan...@gmail.com wrote:
Hi,
Maps [1] and WeakMaps [2] are very similar in their API. Since neither
proposal discusses how they should interact with each other,
6 matches
Mail list logo