Re: Faking host objects

On Sunday, 30 December 2012 at 00:05, François REMY wrote:

> Not completly generic yet, but I’ve a good version already:
>  
> http://pastebin.com/Zi4G4diV

Thanks! Will have a good look tomorrow.  
>  
> I added a few asserts to allow you to see how far I went. Please note that neither “Function.prototype.name (http://Function.prototype.name)” and “__proto__” are standardized, so you should avoid them when possible.

Yep, not sure why name didn't get standardised.... though, I thought __proto__ was going to be in ES6?   
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-B.3.1

--  
Marcos Caceres
http://datadriven.com.au

Received on Sunday, 30 December 2012 01:10:39 UTC