Object.create

Douglas Crockford douglas at crockford.com
Sat Sep 19 15:42:06 PDT 2009


Oliver Hunt wrote:
> Looking at Object.create i don't see any clean way to safely define an 
> object with the default prototype -- you can either define a dynamically 
> resolved prototype, or null.  This means that to safely create a new 
> object with default prototype you can't use Object.create, and instead 
> have to do Object.defineProperties({},...), is this intentional?

Object.create(Object.prototype)


More information about the es5-discuss mailing list