@@new
Kevin Smith
zenparsing at gmail.com
Wed Jun 18 09:28:56 PDT 2014
> Another thing to consider is to ensure that @@create initializes all of
> its slots. For example Date[@@create]() could set its [[DateValue]] to NaN,
> Map[@@create]() could set its [[MapData]] to an empty list and so on.
>
I think if you go that route you still may need some checks in place to
ensure that the initializer (constructor) is only executed once.
For instance, you'd never want the Promise constructor to be called twice
on some promise object.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140618/3d869723/attachment.html>
More information about the es-discuss
mailing list