Rick Waldron (2013-10-18T19:54:59.000Z)
On Friday, October 18, 2013, Angus Croll wrote:

> thanks André that works!
>
> (I was going by
> https://github.com/tvcutsem/harmony-reflect/blob/master/doc/traps.mdwhich says 'delete')
>
> Cc Tom Van Cutsem to make sure he sees this.

Rick



>
> @angustweets
>
>
> On Fri, Oct 18, 2013 at 9:38 AM, André Bargull <andre.bargull at udo.edu<javascript:_e({}, 'cvml', 'andre.bargull at udo.edu');>
> > wrote:
>
>>  Follow up question for Tom et al...
>>>
>>> Using require('harmony-reflect')....
>>>
>>> var t = {a:3, c:4};
>>> var p = Proxy(
>>>    t,
>>>    {
>>>      get: function() {},
>>>      delete: function(t,x) {
>>>        console.log('deleting');
>>>        delete t.a;
>>>      }
>>>    }
>>> );
>>> delete p.c
>>> p; //{a:3}
>>> t; //{a:3}
>>>
>>> the console.log is not called and deleting is not trapped.
>>> Am I doing something wrong?
>>>
>>
>> The trap name for the `delete` operator is "deleteProperty" instead of
>> "delete"...
>>
>>
>>>
>>> @angustweets
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131018/6a154a3c/attachment.html>
domenic at domenicdenicola.com (2013-10-26T03:15:20.801Z)
On Friday, October 18, 2013, Angus Croll wrote:

> (I was going by
> https://github.com/tvcutsem/harmony-reflect/blob/master/doc/traps.mdwhich says 'delete')

Cc Tom Van Cutsem to make sure he sees this.