Object.prototype.get & bye bye Object.defineProperty

David Bruant bruant.d at gmail.com
Thu Nov 29 08:05:57 PST 2012


Le 29/11/2012 17:02, Allen Wirfs-Brock a écrit :
> On Nov 29, 2012, at 7:47 AM, Nathan Wall wrote:
>>
>> Seems pretty excessive. It's probably too late to make defineProperty 
>> only look at own properties, but how about making it ignore 
>> properties inherited from Object.prototype?
> Fairly complex to determine.  Would it really be worth it?
I don't believe so. Andreas exposed a potential attack, but there is 
already a standard and widely implemented way to prevent this attack 
(there are actually several!).

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121129/0ea444dd/attachment.html>


More information about the es-discuss mailing list