[Webkit-unassigned] [Bug 38409] New: Add support for default parameters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 30 15:52:16 PDT 2010


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

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


Default parameters is one of the approved proposals for the next version of
ECMAScript (Harmony).

var x;
function f(y = x) {
  return y
}

x = 1;
assertEquals(1, f());
x = 2;
assertEquals(2, f());

Default parameters may not be followed by non default parameters so the
following is an error

function g(x = y, z) {}

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