Skip to content

Conversation

@zdenko
Copy link
Collaborator

@zdenko zdenko commented Jul 11, 2017

@GeoffreyBooth I noticed an error with the object spread nested properties in branch 2, e.g.
obj2 = {obj.a.b.c..., obj["a"]["b"]...}

This has been already fixed in #4493, but it seems that something went off in the latest commits.
This small PR restores the functionality back.

@connec do you mind taking a look since your commits also include changes in the grammar?

@GeoffreyBooth GeoffreyBooth changed the title fix for object spread nested properties [CS2] Fix object spread nested properties Jul 12, 2017
@zdenko
Copy link
Collaborator Author

zdenko commented Jul 19, 2017

@connec were you able to check this PR?

@connec
Copy link
Collaborator

connec commented Jul 20, 2017

This still breaks if accesses are mixed with indices 😢

[stdin]:1:18: error: unexpected .
obj2 = { obj["a"].b... }
                 ^

@zdenko
Copy link
Collaborator Author

zdenko commented Jul 20, 2017

@connec are you sure? It's working for me.
I also added a couple of tests.

Copy link
Collaborator

@connec connec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably checked out the wrong branch 😓 thanks for adding the tests though!

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants