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 <[email protected]> wrote:

> On 17 August 2012 14:31, Andrea Giammarchi <[email protected]>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
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to