On 2/4/14 9:02 AM, Boris Zbarsky wrote: > On 2/4/14 1:37 AM, Chris Peterson wrote: >> Jeff, regarding proxies and JSClass > > Note that we're currently sort of moving in the opposite direction: we > just gave proxies distinct JSClasses.
Yeah, that’s the right direction. I won’t duplicate Boris’s reasoning which is spot-on. I’ll just add that proxies are much uglier than Classes. The ProxyHandler hierarchy, inside the engine at least, is gruesome. (The bits in js/xpconnect/wrappers are not so bad.) Jeff also makes or hints at some other, separable points. Class::getProperty/setProperty etc. are stupid and we should be trying to kill them off. deleteProperty should have ES6 semantics, not the legacy JSClass semantics. The "lookupProperty" operation needs to go, in favor of ES6 getOwnProperty. I agree with those. -j _______________________________________________ dev-tech-js-engine-internals mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

