Closed Bug 304771 Opened 20 years ago Closed 20 years ago

Javascript: Unitialized variable yields random results

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 263945

People

(Reporter: g4lnx, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050514 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050514 setTimeout( function( a ){ alert(a); }, 1 ); In IE, this code makes a exception, but Firefox (windows) and this version of mozilla, results in random numbers, maybe trash from stack. Reproducible: Always Steps to Reproduce: 1.Go to js console 2.setTimeout( function( a ){ alert(a); }, 1 ); 3. Actual Results: random numbers are returned Expected Results: Exhibiton of "a" var value weird behaviour detected first by jonasraoni@gmail.com
*** This bug has been marked as a duplicate of 263945 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.