Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Fix: Set node type to ExperimentalRestProperty (fixes #276) #279

Merged
merged 2 commits into from
May 23, 2017

Conversation

soda0289
Copy link
Member

@soda0289 soda0289 commented May 20, 2017

We were not using the correct node type when an object spread was used in a function parameter. This commit checks for the dotDotDot property can creates an ExperimentalRestPropert if set. I don't think typescript supports using an initializer or property name so I do not convert these properties. Edit: TypeScript does support inital value and renaming of property. Will update the PR and tests

@eslintbot
Copy link

LGTM

@JamesHenry
Copy link
Member

So, this is not yet ready for review?

@eslintbot
Copy link

LGTM

@soda0289
Copy link
Member Author

@JamesHenry should be good to review. I copied the object rest spread tests from espree and made some changes to allow all the tests to pass.

@JamesHenry JamesHenry merged commit 525a544 into master May 23, 2017
@JamesHenry JamesHenry deleted the fix-object-spread branch May 23, 2017 13:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants