Bug 38411 - [ES6] Add support for the spread operator
: [ES6] Add support for the spread operator
Status: NEW
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To: Nobody
http://wiki.ecmascript.org/doku.php?i...
:
Depends on:
Blocks: 80559
  Show dependency treegraph
 
Reported: 2010-04-30 16:03 PDT by Erik Arvidsson
Modified: 2015-07-18 11:10 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Arvidsson 2010-04-30 16:03:41 PDT
The spread operator is one of the approved proposals for the next version of ECMAScript (Harmony)

function f(a, b) {
  assertEquals(0, a);
  assertEquals(1, b);
}

var array = [0, 1];
f(...array);

The spread operator removes most needs of Function.prototype.apply.