On Jul 2, 2009, at 10:39 AM, Allen Wirfs-Brock wrote:
Here is the language that I have inserted in the introduction to Chapter 15:
This section generally describes distinct behaviours for when a constructors is “called as a function” and for when it is “called as part of a new expression”. The “called as a function” behaviour corresponds to the invocation of the constructor’s [[Call]] internal method and the “called as part of a new expression” behaviour corresponds to the invocation of the constructor’s [[Construct]] internal method.
Instead of "corresponds to" I would say these behaviors "define" or "are" the [[Call]] and [[Construct]] internal properties respectively.
I also think that, given this change, the steps of actually creating new objects should be moved down to the descriptions for "called as a function" and "called as part of a new expression", instead of described separately above, to make clear that they still happen when the [[Call]] or [[Construct]] internal properties are invoked in other ways.
Regards,
Maciej
_______________________________________________
es-discuss mailing list
es-discuss@...
https://mail.mozilla.org/listinfo/es-discuss