<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Destructuring Assignment: Properties are valid AssignmentElements"
   href="https://bugs.webkit.org/show_bug.cgi?id=151026#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Destructuring Assignment: Properties are valid AssignmentElements"
   href="https://bugs.webkit.org/show_bug.cgi?id=151026">bug 151026</a>
              from <span class="vcard"><a class="email" href="mailto:caitpotter88&#64;gmail.com" title="Caitlin Potter &lt;caitpotter88&#64;gmail.com&gt;"> <span class="fn">Caitlin Potter</span></a>
</span></b>
        <pre>Added a first-stab at a fix.

This only supports the case of ObjectAssignmentPattern properties with identifier property names, so no integer/string/computed properties supported yet. Also, ArrayAssignmentPatterns aren't handled.

A test case:

```js
var foo = {};
({ a: foo.a } = { a: true });
assert(foo.a === true);
```

I'm happy to add tests and clean it up (without cleanup, there will be a pile of duplicate code), but I'd like to make sure the codegen and new AST entry make sense first.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>