Subj : Re: JS Shell: throw {} To : netscape.public.mozilla.jseng From : Martin Honnen Date : Sun Dec 26 2004 12:56 pm Martin Honnen wrote: > Christian Biesinger wrote: > > >> I was playing around a bit with js shell... I noticed this: >> js> throw {} >> can't convert undefined to an integer >> > Seems like a bug to me, I get the same results with the xpcshell.exe > coming with some Mozilla 1.8 nightly downloaded this month. > If I put that code into a script section in a HTML page that nightly > even crashes on me. > I will download the latest nightly and see if that crashes too. The xpcshell that comes with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20041225 also shows that Error: can't convert undefined to an integer error on throw {}. I can't reproduce that crash however. -- Martin Honnen http://JavaScript.FAQTs.com/ .