That's why it would be better if the behavior of FixedHandler could become part of the built-in behavior of proxies.
One issue that requires some thought is whether the FixedHandler could ever garbage collect fixed properties. I don't think that is possible, and that would compromise proxy abstractions that emulate objects with an infinite amount of properties that are derived implicitly from some other source. The FixedHandler would store all of those - presumably generated - properties explicitly. Cheers, Tom 2011/7/5 Sean Eagan <seaneag...@gmail.com> > I like the FixedHandler approach, one remaining concern I have though > is that without something like "Proxy.isProxy", object consumers will > need to unnecessarily wrap non-proxy objects in order to guarantee > invariant maintenance. > > Cheers, > Sean Eagan >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss