[Webkit-unassigned] [Bug 151026] New: Destructuring Assignment: Properties are valid AssignmentElements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 9 07:53:23 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=151026
Bug ID: 151026
Summary: Destructuring Assignment: Properties are valid
AssignmentElements
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: caitpotter88 at gmail.com
Any sort of Property MemberExpression used in a destructuring assignment context results in a syntax error:
```js
({ x: this.x } = { x: true });
({ x: (function() {}).x } = { x: true });
({ x: ({}).x } = { x: true });
// etc ...
```
However, these are all legal (even if they don't make any sense), per http://tc39.github.io/ecma262/#prod-AssignmentElement
--
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/20151109/c4396c3e/attachment.html>
More information about the webkit-unassigned
mailing list