some errata in PDF

Brendan Eich brendan at mozilla.org
Mon Sep 3 19:10:02 PDT 2007


On Sep 3, 2007, at 3:00 AM, Lars T Hansen wrote:

> On 8/26/07, Garrett Smith <dhtmlkitchen at gmail.com> wrote:
>> Back to "caller"...
>> "caller" is on the prototype in Mozilla.

Not lately:

js> function f(){ return f.hasOwnProperty('caller')}
js> f()

This is a SpiderMonkey REPL based on code going into Firefox 3.

> Retch.  Granted the content distribution and security models of the
> web make this kind of attack much less potent, and some of the
> introspection functionality proposed for ES4 may have similar issues
> (not clear to me yet), but "caller" has a lot of problems.

That's why it was never standardized. It was a bogo-reflection from  
Netscape 2. That it's not in JScript says to me that other  
implementations can drop it. Mozilla 2 won't support it, FYI.

/be




More information about the Es4-discuss mailing list