Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

PropName needs to be updated too #42

Open
anba opened this issue Apr 25, 2017 · 3 comments
Open

PropName needs to be updated too #42

anba opened this issue Apr 25, 2017 · 3 comments

Comments

@anba
Copy link

anba commented Apr 25, 2017

https://tc39.github.io/ecma262/#sec-object-initializer-static-semantics-propname

PropName needs to handle the new ...AssignmentExpression syntax:


PropertyDefinition : ... AssignmentExpression

  1. Return empty.
@caiolima
Copy link

In this case, what does it evaluate?

let {a, b, ...c=15} = {a: 5, b: 7, c:30, d: 40}

@anba
Copy link
Author

anba commented Apr 28, 2017

In this case, what does it evaluate?

It throws a SyntaxError.

@caiolima
Copy link

You are right, now I know you are referring another issue. My question was totally unrelated. Sorry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants