[Webkit-unassigned] [Bug 21959] New: modifications to arguments object not respected by Function.prototype.apply
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 29 15:45:27 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=21959
Summary: modifications to arguments object not respected by
Function.prototype.apply
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
URL: http://pastebin.mozilla.org/564192
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bn at cs.stanford.edu
Modifying |arguments| with [].splice is broken:
function argc() { return arguments.length }
function test() {
[].splice.call(arguments, 0, 0, 1);
return [
arguments.length,
argc.apply(null, arguments)
];
}
test() // [1, 0]
test(1) // [2, 1]
test(1,2) // [3, 2]
test(1,2,3) // [4, 3]
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list