[Webkit-unassigned] [Bug 38408] New: Add support for rest parameters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 30 15:47:27 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38408

           Summary: Add support for rest parameters
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://wiki.ecmascript.org/doku.php?id=harmony:rest_pa
                    rameters
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arv at chromium.org


Rest parameters (aka var args aka rest args) are one of the agreed features for
the next version of ECMAScript (Harmony)

function f(a, ...b) {
  assertTrue(b instanceof Array);
  return b.length;
}

assertEquals(0, f());
assertEquals(0, f(1));
assertEquals(1, f(1, 2));
assertEquals(3, f(1, 2, 3, 4));

Rest parameters is one of the carrots towards getting rid of "arguments".

-- 
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