Do we really need the [[HasOwnProperty]] internal method and hasOwn trap

Erik Arvidsson erik.arvidsson at gmail.com
Tue Nov 13 13:23:55 PST 2012


On Tue, Nov 13, 2012 at 3:25 PM, Tom Van Cutsem <tomvc.be at gmail.com> wrote:

>
> So, my proposal: let's revert the fundamental traps of Handler to become
> abstract methods again. This forces subclasses of Handler to provide all
> fundamentals at once, avoiding the footgun.
>

Maybe we should skip the derived traps for ES6 and see if the extra
allocation really becomes an issue in reality? This way we are keeping the
API smaller and the risk of errors lower. We can always add the derived
traps later, can't we?

-- 
erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121113/6e56f44b/attachment.html>


More information about the es-discuss mailing list