Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dynamic additions to Function.prototype not reflected when in chrome?

2 views
Skip to first unread message

Fritz Schneider

unread,
Sep 15, 2005, 10:00:36 PM9/15/05
to
Firefox 1.5b1, try the following mystifying test case in js in an extension:

Function.prototype.foo = "bar";
function f(){}
alert(f.foo);

Gives undefined. Verified on a clean install. Bug, right? I think this one:

https://bugzilla.mozilla.org/show_bug.cgi?id=300079

Martin Honnen

unread,
Sep 16, 2005, 12:39:18 PM9/16/05
to

Fritz Schneider wrote:
> Firefox 1.5b1, try the following mystifying test case in js in an extension:
>
> Function.prototype.foo = "bar";
> function f(){}
> alert(f.foo);
>
> Gives undefined.

Has that ever given a different result for you with script in XUL?

--

Martin Honnen
http://JavaScript.FAQTs.com/

0 new messages