You can observe the Object.prototype same you can define setters and stuff
there ... observing it won't affect literals or new object creation since
it works with own properties.

On Fri, Aug 17, 2012 at 2:46 PM, gaz Heyes <gazhe...@gmail.com> wrote:

> On 17 August 2012 14:31, Andrea Giammarchi <andrea.giammar...@gmail.com>wrote:
>
>> that object has to be created first, than parsed to Object.observe ...
>> even evaluating this:
>>
>>  [Object.observe({"x":"stolen"}, dangerousStuff)]
>>
>> nothing will happen since the object has been defined already
>>
>
> So basically you can't observe the Object prototype it has to be a object
> literal. I think that answers my question :)
>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to