Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser fails on rest+spread operator {...this.get()} #1871

Closed
dasDaniel opened this issue Dec 11, 2018 · 1 comment
Closed

parser fails on rest+spread operator {...this.get()} #1871

dasDaniel opened this issue Dec 11, 2018 · 1 comment

Comments

@dasDaniel
Copy link

This is a small issue, but seems like the parser doesn't handle the spread+rest operator.

In version 2.13.5, I noticed that the following (possibly) related issues have been resolved
#1540
#1515
so I'm not sure if they are the same issue though

this line gives me an error:

console.log({...this.get()})
126 :     console.log({...this.get()})
                      ^^^^^^^^^^^^^^^

I find it handy to log state using rest+spread to get a better representation of state at the time.

@Conduitry
Copy link
Member

I think the parser is okay with rest/spread now, and also this.get() is no longer valid in v3. Closing.

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

No branches or pull requests

2 participants