Closed Bug 679719 Opened 13 years ago Closed 12 years ago

Arguments object bugs within closure in Firefox5 (regression of bug 647425)

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: claudio.procida, Unassigned)

References

Details

(Whiteboard: js-triage-needed)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0.1) Gecko/20100101 Firefox/5.0.1
Build ID: 20110707182747

Steps to reproduce:

I was able to reproduce bug 6472425 in Firefox 5.0. It looks like regression from FF4.0.1.

User-Agent:  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0.1) Gecko/20100101 Firefox/5.0.1"
Build Identifier: "20110707182747"

(function() {
		var args = arguments;
		function n() {
				args[0] = "caimc";
				alert.apply(null, args);
		}
		setTimeout(n,0);
})("cmc");

IN FF5.0.1 it alert undefined - should be ‘caimc’!

Reproducible: Always

Steps to Reproduce:
1.execute the code at details

Actual Results:  
undefined

Expected Results:  
caimc
See Also: → 647425
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Is this really a duplicate of an ancient bug?  I sort of doubt it.

In particular, the attached testcase works for me in Firefox 3.6, fails in Fx4 and Fx5, and passes again in Fx6....  So it does look like something regressed and then was fixed.  Can we add a testcase for it?
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Can someone get us the full regression history on this test case?
Whiteboard: js-triage-needed
Status: REOPENED → RESOLVED
Closed: 13 years ago12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.