Of course it can, by tamper proofing (essentially, freezing) Object.prototype. None of these protections are relevant anyway in an environment in which the primordials are not locked down.
On Sat, Jan 24, 2015 at 6:11 AM, Gary Guo <[email protected]> wrote: > Now I have a tendency to support the suggestion that cuts the > anti-spoofing part. If coder wants to make an object and pretend it's a > built-in, let it be. The anti-spoofing algorithm could not prevent this > case: > ``` > Object.prototype.toString = function(){ > return '[object I_Can_Be_Anything]'; > } > ``` > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > > -- Cheers, --MarkM
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

