ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

Implement CoverInitialisedName #180

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We need to implement the cover grammar for CoverInitialisedName to support {x = 
42} in patterns. This is needed in cases like:

var f = ({x = 42}) => return x;
assert(f({}) === 42);

Original issue reported on code.google.com by arv@chromium.org on 8 Dec 2012 at 7:03