[Webkit-unassigned] [Bug 109307] New: [Qt] Function.prototype.apply doesn't accept non-Array arguments list

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 8 09:14:07 PST 2013


           Summary: [Qt] Function.prototype.apply doesn't accept non-Array
                    arguments list
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: richard.gibson at gmail.com

Per spec at http://es5.github.com/#x15.3.4.3 , Function.prototype.apply should accept as its second argument any object with a length property (used as an exclusive upper bound on numeric "indices"). http://bugs.jquery.com/ticket/13282 implies that QtWebKit does not, because passing a NodeList (e.g., from document.getElementsByTagName("a")) fails (confirmed with phantomjs 1.7).

In other words, the following expressions should return [0, 1]:
  (function(a, b){ return [a, b]; }).apply( null, { length: 2, 0: 0, 1: 1 } )

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list