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

incorrect parsing of bind rest property with array destructuring #310

Closed
gsathya opened this issue Jan 17, 2017 · 1 comment
Closed

incorrect parsing of bind rest property with array destructuring #310

gsathya opened this issue Jan 17, 2017 · 1 comment

Comments

@gsathya
Copy link
Member

gsathya commented Jan 17, 2017

Input Code

Object.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
var {...[z]} = {0:0 };

repl

Babylon/Babel Configuration

presets - stage3

Expected Behavior

→ ./out.gn/x64.debug/d8 --harmony-object-rest-spread -e "Object.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator]; var {...[z]} = {};"
→

No error

Current Behavior

SyntaxError

Your Environment

software version
Babylon
node
npm
Operating System
@danez
Copy link
Member

danez commented Jun 3, 2017

This seems it was fixed recently as the latest version parses this example correctly.

@danez danez closed this as completed Jun 3, 2017
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

2 participants