instanceof trap and default handler for Proxies

David Herman dherman at mozilla.com
Sat Oct 30 08:53:28 PDT 2010


> I assume the answer is no, but can one proxy simple modules?


I can think of two ways to read this question. If you mean "can one simulate simple modules with proxies" the answer is no -- you can't dynamically simulate something with static semantics. If you mean "can one create a proxy that delegates to a module" the answer is yes: because simple modules can be reflected as objects at runtime, you can use any kind of dynamic delegation patterns you like, including via proxies.

Dave

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20101030/75893162/attachment.html>


More information about the es-discuss mailing list