Proxying Native Objects: Use case

Tom Van Cutsem tomvc.be at gmail.com
Tue Feb 5 03:26:40 PST 2013


2013/2/4 François REMY <francois.remy.dev at outlook.com>

> > I don't know if native objects have a mutable [[Prototype]] (by
> > assigning __proto__) but if they do, then one solution might be to have
> > your native objects inherit from a proxy. The proxy should then be able
> > to intercept all missing properties, as I once
> > sketched:
> https://mail.mozilla.org/pipermail/es-discuss/2011-December/018834.html
>
> Good idea. Should I feel stupid for not having found the solution myself
> or be happy to have asked the question anyway? Or both :-)
>

Definitely don't feel stupid :)


> Thank you Tom, I guess it is suitable to solve my use case.
>


Glad to hear this solution would work for you.

Cheers,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130205/9114e1e5/attachment.html>


More information about the es-discuss mailing list