Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

es6-destructuring support? #7

Open
pedroteixeira opened this issue Nov 18, 2014 · 3 comments
Open

es6-destructuring support? #7

pedroteixeira opened this issue Nov 18, 2014 · 3 comments

Comments

@pedroteixeira
Copy link

I was trying to use "es6-destructuring" syntax with arrow functions, but I get "Unexpected token =>"

obj.mapEntries( ([k,v]) => [k,v] );

Any hints on how to accomplish this?

thanks

@totallymike
Copy link

This appears to be a bug. (I came here to see if it was filed already)

You can see an example here of traceur compiling the code as you'd expect.

For comparison, see here for esnext's output.

@eventualbuddha
Copy link
Contributor

This appears to be a bug in esprima. Mind filing a bug there if there isn't one already?

@eventualbuddha
Copy link
Contributor

I believe this will be fixed by facebookarchive/esprima#80.

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

3 participants