Bug 38410 - [ES6] Add support for destructuring
Summary: [ES6] Add support for destructuring
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://wiki.ecmascript.org/doku.php?i...
Depends on: 146339
Blocks: 80559
  Show dependency treegraph
Reported: 2010-04-30 15:57 PDT by Erik Arvidsson
Modified: 2016-06-06 20:28 PDT (History)
7 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Erik Arvidsson 2010-04-30 15:57:25 PDT
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);
Comment 1 Erik Arvidsson 2011-08-29 14:08:59 PDT
This is also in the latest draft of the ES6 spec

Comment 2 Erik Arvidsson 2013-10-21 12:25:11 PDT
Olliver, can this be closed now?
Comment 3 Joseph Pecoraro 2016-06-06 20:28:17 PDT
Yeah, JSC has supported destructing for a while now. Closing.