Subj : Re: Possible Bug in js_NumberToString? To : Stephen Jones From : Phil Schwartau Date : Sun May 11 2003 01:20 pm Here are the dates of some SpiderMonkey 1.5 releases: RC5 10 Jan 2003 RC4a 21 Mar 2002 RC4 01 Jan 2002 RC3a 11 May 2001 RC3 07 Mar 2001 We've had a number of bugfixes since RC4; I would recommend updating to RC5. Here is a list of all the bugs I could find against JS Engine that mention "js_NumberToString" in a comment; all are marked "Fixed": http://bugzilla.mozilla.org/buglist.cgi?bugidtype=include&order=bugs.bug_id&bug_id=7625,85267,89474,99120,102725,117611,132088,146210,154737,174555,179524 However, there were two Windows-only bugs reminiscent of the problem you describe, which were fixed after RC5: http://bugzilla.mozilla.org/show_bug.cgi?id=160602 "Large integers, e.g. getTime(), causing crash at 0x39393929" http://bugzilla.mozilla.org/show_bug.cgi?id=140852 "String(819187200000) == '8191871:0000' in xpcshell, browser" Both of these were fixed in February 2003, and so the fixes are currently only available from the JS tip in CVS. Perhaps we should release a new tarball that would contain these - Phil Stephen Jones wrote: > I'm pretty sure it's 1.5-rc4 . . . could be rc3a, because I have both > archived on my machine, but I'm pretty sure it's rc4 . . . any place I can > look in the code to be sure? > > BTW: This only seemed to be happening on Windows, the MacX platform seemed > fine. > > Side Note: We're extremely pleased with SpiderMonkey. We were using the > Microsoft Active Scripting engine in our product and when we ported it to > the Mac, we needed another solution. The speed increases we're seeing over > the Microsoft engine are incredible. The static methods and garbage > collection make SpiderMonkey a little difficult to deal with, but once > integrated, the engine seems very solid. > > I heard rumor at some point of a 2.0 version. Is this in the works? We would > love to see a C++ solution. Accepting any design input? > > Thanks for all the hard work, > - Stephen > > > "Brendan Eich" wrote in message > news:3EBC2BBB.9050401@meer.net... > >>Stephen Jones wrote: >> >> >>>In js_NumberToString, for doubles with large mantissas, JS_dtostr > > ASSERTS. I > >>>increased the size of the buffer passed into JS_dtostr and it works >>>perfectly. >>>Comments? >>>Thanks, >>>- S >>> >>> >> >>What version of the code are you using? >> >>/be >> >> >>> >>> > > .