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

Brendan Eich brendan at
Mon Apr 23 11:15:39 PDT 2012

Allen Wirfs-Brock wrote:
> This raises the issue that ES5.1 overlooked poisoning caller/arguments 
> for Function.prototype.  Only function object created using the 
> algorithm in 13.2 have the the poison pill properties and 
> Function.prototype is not specified using 13.2.

Function.prototype is special already:

js> Function.prototype
function () {}
js> Function.prototype.prototype

I think we did the right thing in not adding poisoned pills to it. Was 
there a capability leak involving Function.prototype that I missed?


More information about the es-discuss mailing list