Re: [JS-internals] Proxy question

2013-07-10 Thread Nicholas Nethercote
On Fri, Jun 21, 2013 at 3:55 AM, wrote: > On Thursday, June 20, 2013 9:53:01 AM UTC-7, Bill McCloskey wrote: >> It looks like ProxyClass is only used for the "Proxy" object that we add to >> the global (i.e., the thing that allows you to do Proxy.create). That object >> isn't actually a proxy a

Re: [JS-internals] Proxy question

2013-07-10 Thread brandon . benvie
On Thursday, June 20, 2013 9:53:01 AM UTC-7, Bill McCloskey wrote: > It looks like ProxyClass is only used for the "Proxy" object that we add to > the global (i.e., the thing that allows you to do Proxy.create). That object > isn't actually a proxy at all. It probably would make sense to rename

Re: [JS-internals] Proxy question

2013-06-20 Thread Nicholas Nethercote
> ProxyConstructor That's the one I like best so far. Nick ___ dev-tech-js-engine-internals mailing list dev-tech-js-engine-internals@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Re: [JS-internals] Proxy question

2013-06-20 Thread Brendan Eich
object isn't actually a proxy at all. It probably would make sense to rename ProxyClass to something less confusing. -Bill - Original Message - From: "Nicholas Nethercote" To: "JS Internals list" Sent: Wednesday, June 19, 2013 11:33:12 PM Subject: [JS-internals] Pr

Re: [JS-internals] Proxy question

2013-06-20 Thread Tom Schuster
g less > > confusing. > > > > -Bill > > > > - Original Message - > > > From: "Nicholas Nethercote" > > > To: "JS Internals list" > > > > > > Sent: Wednesday, June 19, 2013 11:33:12 PM > > > Subjec

Re: [JS-internals] Proxy question

2013-06-20 Thread Luke Wagner
uot;JS Internals list" > > > > Sent: Wednesday, June 19, 2013 11:33:12 PM > > Subject: [JS-internals] Proxy question > > > > Hi, > > > > Here's some code from jsproxy.h: > > > > > > inline bool IsObjectProxyClass(const Class *clasp)

Re: [JS-internals] Proxy question

2013-06-20 Thread Bill McCloskey
riginal Message - > From: "Nicholas Nethercote" > To: "JS Internals list" > Sent: Wednesday, June 19, 2013 11:33:12 PM > Subject: [JS-internals] Proxy question > > Hi, > > Here's some code from jsproxy.h: > > > inline

Re: [JS-internals] Proxy question

2013-06-20 Thread Bobby Holley
ProxyClass isn't for proxies - it's for the Proxy constructor on the global. On Wed, Jun 19, 2013 at 11:33 PM, Nicholas Nethercote < n.netherc...@gmail.com> wrote: > Hi, > > Here's some code from jsproxy.h: > > > inline bool IsObjectProxyClass(const Class *clasp) > { > return clasp == &js::O

[JS-internals] Proxy question

2013-06-19 Thread Nicholas Nethercote
Hi, Here's some code from jsproxy.h: inline bool IsObjectProxyClass(const Class *clasp) { return clasp == &js::ObjectProxyClass || clasp == &js::OuterWindowProxyClass; } inline bool IsFunctionProxyClass(const Class *clasp) { return clasp == &js::FunctionProxyClass; } inline bool IsProx