On Wed, Oct 5, 2011 at 10:36 PM, Jake Verbaten <rayn...@gmail.com> wrote:
> Object.create does indeed require propertydescriptors as the second > argument. This is the easiest way to send meta-data like read-only. > > However it's verbose and the defaults are restrictive. I've written a small > library (github.com/Raynos/pd) to make it less verbose, you might find it > useful. > > > That's what > Object.getOwnPropertyDescriptors<http://wiki.ecmascript.org/doku.php?id=strawman:extended_object_api> > would be for. I don't know why it hasn't gotten into Harmony yet. Juan
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss