[Harmony Proxies] Default trap implementations should be non-normative

Sean Eagan seaneagan1 at gmail.com
Tue May 31 10:53:37 PDT 2011


Noticed a few other typos in the [[Trap]] steps, here's a better version:

1.  Let noTrapReturn be a List with the elements false and undefined.
2.  If O does not have a [[Handler]] internal property return noTrapReturn.
3.  Let handler be the value of the [[Handler]] internal property of O.
4.  Let trap be the result of calling the [[Get]] internal method of
handler with argument Name.
5.  If trap is undefined, return noTrapReturn.
6.  If IsCallable(trap) is false, then
   a.  If Throw is true throw a TypeError exception.
   b.  return noTrapReturn.
7. 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.


On Tue, May 31, 2011 at 12:08 PM, Sean Eagan <seaneagan1 at gmail.com> wrote:
> 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.
>
> Thanks,
> Sean Eagan
>


Thanks,
Sean Eagan


More information about the es-discuss mailing list