Closed
Bug 648634
Opened 13 years ago
Closed 13 years ago
Elements of arguments become undefined if reassigned and passed to apply()
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 647425
People
(Reporter: claudio.procida, Unassigned)
Details
(Keywords: 64bit)
Attachments
(2 files, 1 obsolete file)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_6) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.16 Safari/534.24 Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 We encountered this bug when testing our AJAX application under FF4.0 The problem occurs when: - a first function invokes an asynchronous operation (e.g. a setTimeout or an XHR operation) hitching its arguments - a second function, invoked as callback by the async operation, manipulates the arguments object received as actual parameter, and calls a third function - a third function invokes a final fourth function calling apply() on it and passing the args Please refer to the attached testcase to reproduce the problem. The problem does not occur in FF3.6 Reproducible: Always Steps to Reproduce: 1. Run the attached proof.html into FF4.0 2. Verify an exception is thrown because the argument is undefined Actual Results: Arguments passed to fn.apply(obj, args) that have been reassigned appear as undefined in the called function fn Expected Results: All of the arguments passed to fn.apply(obj, args) should be defined in the called function fn
Reporter | ||
Comment 1•13 years ago
|
||
This HTML file contains the set of functions required to reproduce the bug in FF4.0
Comment 2•13 years ago
|
||
Does not reproduce with latest nightly or with latest TM shell, lin64.
Comment 3•13 years ago
|
||
*coughs* Reproduces with setTimeout() not commented out.
Attachment #524723 -
Attachment is obsolete: true
Comment 4•13 years ago
|
||
Comment 5•13 years ago
|
||
Courtesy of Waldo.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•