some errata in PDF

liorean liorean at
Sat Aug 25 23:54:11 PDT 2007

On 26/08/07, Garrett Smith <dhtmlkitchen at> wrote:
> Missing:
> Function.prototype.caller

Should this property really be on the prototype? Even placing it on
the Function instances alone seems a bad idea to me, since the value
is per call and not per function object. But placing it on the
Function prototype seems an even worse idea. It should really be a
property on the function object only for compatibility reasons in
engines which have to use it (and even then only exist while the
function is executing).

> ?

Makes more sense - the Function prototype is a function per ES3, so if
function instances should have a name property, then the Function
property should probably have it as well. IIRC ES3 doesn't specify it,
but it's in the browser hosted engines.
David "liorean" Andersson

More information about the Es4-discuss mailing list