Weird spec hole in ES3 and ES5

Maciej Stachowiak mjs at apple.com
Thu Jul 2 16:46:14 PDT 2009


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

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20090702/50b75aa1/attachment.html>


More information about the es-discuss mailing list