Bug 38410
Summary: | [ES6] Add support for destructuring | ||
---|---|---|---|
Product: | WebKit | Reporter: | Erik Arvidsson <arv> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | abarth, barraclough, dglazkov, eric, joepeck, m.goleb+bugzilla, oliver |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://wiki.ecmascript.org/doku.php?id=harmony:destructuring | ||
Bug Depends on: | 146339 | ||
Bug Blocks: | 80559 |
Erik Arvidsson
Destructuring (aka destructuring assignmen) is one of the approved proposals for the next version of ECMAScript (Harmony). Destructuring is already supported by SpiderMonkey and Opera (Carakan).
var [x, y] = [0, 1];
assertEquals(0, x);
assertEquals(1, y);
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Erik Arvidsson
This is also in the latest draft of the ES6 spec
http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts
Erik Arvidsson
Olliver, can this be closed now?
Joseph Pecoraro
Yeah, JSC has supported destructing for a while now. Closing.