[Harmony Proxies] Default trap implementations should be non-normative
seaneagan1 at gmail.com
Tue May 31 10:08:56 PDT 2011
On Tue, May 31, 2011 at 12:04 PM, Sean Eagan <seaneagan1 at gmail.com> wrote:
> 1. If O does not have a [[Handler]] internal property return [false].
> 2. Let handler be the value of the [[Handler]] internal property of O.
> 3. Let trap be the result of calling the [[Get]] internal method of
> handler with argument Name.
> 4. If trap is undefined, return a List whose first element is false.
> 5. If IsCallable(trap) is false, then
> a. If Throw is true throw a TypeError exception.
> b. return a List whose first element is false.
> 7. Return trap.
> 6. Return a List whose first element is true, and whose second
> element is the result of calling the [[Call]] internal method of trap
> providing handler as the this value and Arguments appended with O as
> the arguments.
Sorry, ignore step 7, forgot to remove it.
More information about the es-discuss