> 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.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to