Matter resolved.
Thanks to all of you.
Franck PORCHER
T.J. Crowder wrote:
>>I will be reviewing prtotype's Class.create to see if we cannot achieve
>>the same result with an anonymous function, for which Firefox JS engine
>>*does not* expose anything in the name slot (I already tested this).
>>
> I will be reviewing prtotype's Class.create to see if we cannot achieve
> the same result with an anonymous function, for which Firefox JS engine
> *does not* expose anything in the name slot (I already tested this).
Yes it does; it exposes a blank string:
function go()
{
var f;
f = f
Yep, it's suppose to be read-only
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Function:name
On Jun 9, 12:31 am, Jeff Watkins <[EMAIL PROTECTED]> wrote:
> Off the top of my head, I'd guess you're using FireFox. I know the JS
> engine in FireFox (SpiderMonkey
Yes Jeff, I'm using Firefox (Linux & FreeBSD plat-forms).
And peering at the source code, one can see that Class.create() defines
an explicit klass() function, hence the 'klass' display.
Apparently, this property in not mutable. Something of a pain :-[
I will be reviewing prtotype's Class.creat
Off the top of my head, I'd guess you're using FireFox. I know the JS
engine in FireFox (SpiderMonkey) exposes the name of a function via
the `name` property, however, I don't know whether that property is
mutable.
My guess, from the behaviour of your code, is `name` is not a mutable
prope