Weird spec hole in ES3 and ES5
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss