caller poison pills, revisited (Was: A few arrow function specification issues)

Brendan Eich brendan at mozilla.org
Mon Apr 23 11:30:54 PDT 2012


Allen Wirfs-Brock wrote:
> caller and arguments properties on functions are a non-standard extension,

Right you are:

js> Function.prototype.caller
null
js> Function.prototype.arguments
null

and of course this is heap not code, so strictness doesn't enter into it.

Still happy to change our implementation to remove these from 
Function.prototype if that avoids perpetuating them and their poison 
pill variants via arrows.

/be


More information about the es-discuss mailing list