Hi, The "get" and "set" traps currently have both "receiver" and "proxy" arguments. This is because it has been suggested that they are not the same in the case of property access on a receiver causing a [[Get]] / [[Put]] call to propogate up the prototype chain to a proxy. From what I can tell though, this never actually occurs.
ES5 section 8.12.3 step 8 (the steps start at 8 instead of 1) calls [[GetProperty]] on the receiver, causing a [[GetProperty]] (not [[Get]]) call to propogate up the prototype chain, meaning the proxy's "getPropertyDescriptor" (not "get") trap is called. ES5 section 8.12.5 step 4 also calls [[GetProperty]] on the receiver, causing a [[GetProperty]] (not [[Put]]) call to propogate up the prototype chain, meaning the proxy's "getPropertyDescriptor" (not "set") trap is called. Thanks, Sean Eagan _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss