Closed
Bug 512838
Opened 15 years ago
Closed 15 years ago
Javascript bug in setTimeout, setInterval
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 394769
People
(Reporter: my-tmp-email, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
443 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729) setTimeout, setInterval bug: they set arguments.length to 1, and arguments[0] is number, even if no parameters specified. Internet Explorer 8 work correctly. Bug show himself when function pointed to setTimeout or setInterval, not string. Steps to reproduce contain html file, you can try it in both Firefox and Internet Explorer. Reproducible: Always Steps to Reproduce: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Mozilla 3.5.2 bug</title> <script> var obj= {}; obj.call= function() { alert("correct value is '0, undefined': " + arguments.length + ", " + arguments[0] ); }; setTimeout(obj.call, 1000); </script> </head> <body> </body> Actual Results: 1, number Expected Results: 0, undefined discussion: http://forums.mozillazine.org/viewtopic.php?f=25&t=1443565
Reporter | ||
Updated•15 years ago
|
Priority: -- → P1
Whiteboard: javascript bug
Version: unspecified → 3.5 Branch
Comment 1•15 years ago
|
||
Comment 2•15 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.3a1pre) Gecko/20090826 Minefield/3.7a1pre The testcase has the described result.
Assignee: nobody → general
Component: General → JavaScript Engine
Keywords: testcase
Priority: P1 → --
Product: Firefox → Core
QA Contact: general → general
Whiteboard: javascript bug
Version: 3.5 Branch → Trunk
Comment 3•15 years ago
|
||
Duplicate of bug 394769
Comment 4•15 years ago
|
||
Yep, good catch.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•