From: Stefan Weiss on
On 02/03/10 00:17, Richard Maher wrote:
> Sorry for labouring on this but I upgraded to FireFox 3.6 and managed to get
> a bit more useful output that might ring a bell with somebody. The following
> is a dump of the exception properties that was thrown from the code below
> (Search for "4" to locate the source): -

I don't have FF 3.6 available for testing, but I've experienced this
error sporadically in FF 3.0. In my case, I had suspected Firebug (I
think we talked about this before, not sure), but it could easily have
been something else. By the time I reactivated Firebug, it had been
updated, and the problem had disappeared: correlation, but not
necessarily causation.

The very first thing I would try: disable *all* Firefox add-ons, and I
mean really disable and restart. A few weeks ago, I spent most of an
afternoon tracking down a weird JavaScript error ("e is not defined"),
and when I finally found the source, it turned out to be a typo in the
NoScript add-on. If you can eliminate the possibility of an error
outside your own code, that would help narrow it down. If you could
reproduce the error with Java disabled, that would be even better, but I
don't know if that's possible in your application.

> Any ideas what's happening? FF2 is fine, IE and Chrome do not exhibit this
> problem :-(
>
> 1) Is "canvas" now a dodgy reserved word?

No.

> 2) Is setTimeout with zero millises some sort of optimized "inline" call and
> does not place a *non-recursive* event on the Event Dispatching Thread?

Don't know how to answer that, because I can't look into your applet and
browsers don't have an EDT (well, maybe HotJava does). I don't know what
you mean by "optimized inline call", there's no such thing in
JavaScript. Calling window.setTimeout with 0 as the second argument
should result in the function being called "at the earliest
opportunity", after the main (=only) JS thread has become idle (and any
other functions queued with setTimeout have been called, if necessary).


--
stefan
From: Kevin McMurtrie on
JavaScript is not Java.
--
I won't see Google Groups replies because I must filter them as spam
From: Dr J R Stockton on
In comp.lang.javascript message <hmhhl0$m6b$1(a)news-
01.bur.connect.com.au>, Tue, 2 Mar 2010 07:17:48, Richard Maher
<maher_rj(a)hotspamnotmail.com> posted:
>
>I've looked at about:config and can't see anything relevant but am led to
>believe the FF stack depth to be 3000; either way I just can't see from that
>"stack" output what it's complaining about :-(

This supports depth 3000; a modification of recursive factorial avoiding
large numbers. tested in Firefox 3.0.18 in WinXP sp3 :

function Sum(N) { if (N==0) return 0 ; return Sum(N-1) + 1 }

Sum(2999) // OK
Sum(3000) // !OK

Why should the stack have a fixed limit? It can be implemented as a
double-linked list, as (IIRC) in
<URL:http://www.merlyn.demon.co.uk/programs/longcalc.pas> (for which a
Delphi interpreter written in JavaScript would be fun).

Why to c.l.j.p? FU set to c.l.j only.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk DOS 3.3 6.20 ; WinXP.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.
From: BGB / cr88192 on

"Kevin McMurtrie" <mcmurtrie(a)pixelmemory.us> wrote in message
news:4b8cace6$0$1985$742ec2ed(a)news.sonic.net...
> JavaScript is not Java.

yep.

IMO, it was an unfortunate historical choice for JavaScript to have been
named after Java, as this has created much needless confusion over the
years. if it were a slight variant of the same language, maybe, but it is
not...


in a way, it is about like the whole C, C++, and "C/C++" issue, where some
people think there is only a single language with different names, and some
others think there are in fact 3 languages...

well, and as well, some people who confuse them for assembler, or regard
them as some sort of esoteric black art, ...


> --
> I won't see Google Groups replies because I must filter them as spam


From: Dr J R Stockton on
In comp.lang.javascript message
<hmhhl0$m6b$1(a)news-01.bur.connect.com.au>, Tue, 2 Mar 2010 07:17:48,
Richard Maher <maher_rj(a)hotspamnotmail.com> posted
>
>1) Is "canvas" now a dodgy reserved word?

That case-independent string does not appear in ECMA-262-5, which you
should have. It is in HTML5, and that part is implemented in Firefox
Opera Safari Chrome but not MSIE8.

In such cases, though, the easy thing is to change the string; try
"kansas" as a euphemism.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3? Turnpike 6.07
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines