Object.create

Oliver Hunt oliver at apple.com
Sat Sep 19 15:33:07 PDT 2009


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?

--Oliver



More information about the es5-discuss mailing list