[Webkit-unassigned] [Bug 151026] Destructuring Assignment: Properties are valid AssignmentElements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 12 13:37:00 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=151026
--- Comment #2 from Caitlin Potter <caitpotter88 at gmail.com> ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151112/aa59b078/attachment.html>
More information about the webkit-unassigned
mailing list