Overriding Map/etc with get/set hooks?
Anne van Kesteren
annevk at annevk.nl
Mon May 20 23:32:17 PDT 2013
On Tue, May 21, 2013 at 7:24 AM, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
> Is it possible for the environment to change the Map during the turn?
> IOW, is this always true?
> m.set("x", 1);
> assert(m.get("x") === 1);
If we ignore the toString() and other validation, yes. But note that
setting will directly be observable through getComputedStyle.
Object.observe does not work for this, just like it does not work for
URLQuery (which we discussed a while back).
More information about the es-discuss