Proxying Native Objects: Use case

François REMY francois.remy.dev at outlook.com
Mon Feb 4 13:01:09 PST 2013


> 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 :-)

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


More information about the es-discuss mailing list