ES3.1 Object static methods rationale document

John Resig jresig at mozilla.com
Fri Jul 18 12:40:40 PDT 2008


> You're prev response seems to have come from the discussion of
> Object.create. 

No? We've been discussing the viability of a new Object.extend() method to be introduced in ES3.1. Mozilla has offered a proposal and is looking to implement it in SpiderMonkey. I provided examples of Object.extend-like functionality in the wild and coupled it with a sample pure-JavaScript implementation and some test cases.

Only a few test cases for now - looking to extend with more:
http://ejohn.org/files/object-extend.js

The aforementioned Object.create and YAHOO.lang.extend are a completely separate utilities which should be judged on their own merits.

--John



More information about the Es4-discuss mailing list