Bug 38411
| Summary: | [ES6] Add support for the spread operator | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Erik Arvidsson <arv> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | barraclough, joepeck, kangax, mark.lam, m.goleb+bugzilla |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://wiki.ecmascript.org/doku.php?id=harmony:spread | ||
| Bug Depends on: | |||
| Bug Blocks: | 80559 | ||
Erik Arvidsson
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Joseph Pecoraro
Spread operator has been implemented for a while now! Lets close this.