Closed Bug 9523 Opened 25 years ago Closed 25 years ago

JavaScript: new Date().getTime().toString() -> loop

Categories

(Core :: JavaScript Engine, defect, P3)

Other
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: sh990154, Assigned: mike+mozilla)

Details

Attachments

(1 file)

I've made some progress in porting Seamonkey V7 to the ARM platform. But there's a problem I can't track down to a solution. Everytime when the statement ( new Date() ).getTime().toString() appears, it comes to an infinite loop (I've had it running a whole night long). I've checked nearly everything and everything else seems to work. Is there something that you think might shed some light on this??? TIA.
Summary: hangup (infinite loop) → JavaScript: new Date().getTime().toString() -> loop
provided a more descriptive summary.
tried it on an m8 windows build, and didn't have a problem am checking it out on linux.
sh990154, can you try the test case that i attached, and see if it causes the loop? if it does not cause the loop, would you please add a new test case that demonstrates what you are seeing?
stefan, i added your comments to the bug report. thanks!!! Subject: Re: [Bug 9523] Changed - JavaScript: new Date().getTime().toString() -> loop Date: Thu, 15 Jul 1999 18:06:32 +0200 (METDST) From: "Hanske;Stefan" <sh990154@mail.uni-greifswald.de> I`ve solved that problem now. ARM is a little endian architecture but 64 bit double words are stored differently: the 32 bit words are in little endian byte order, the two words are stored in big endian`s way. So the macros word0(x) and word1(x) are defined in the wrong way. Changing line 213 in js/src/jsdtoa.c to #if defined (IEEE_8087) && !defined(__arm) solves the problem. Thanks nevertheless. Stefan.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fix checked in. Thanks, Stefan.
Status: RESOLVED → VERIFIED
marking verified since stephan provided the fix. thanks!
Target Milestone: M9
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: