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

incorrect pattern parsing in array rest #308

Closed
gsathya opened this issue Jan 17, 2017 · 0 comments · Fixed by #424
Closed

incorrect pattern parsing in array rest #308

gsathya opened this issue Jan 17, 2017 · 0 comments · Fixed by #424

Comments

@gsathya
Copy link
Member

gsathya commented Jan 17, 2017

Input Code

var [...{length}] = [ 1, 2, 3];
console.log(y);

Babylon/Babel Configuration

presets - latest

Expected Behavior

→ ./out.gn/x64.debug/d8 -e "var [...{length}] = [1, 2, 3]; print(length);"
3

Current Behavior

SyntaxError

Your Environment

software version
Babylon
node
npm
Operating System
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants