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

doesn't validate patterns correctly in destructuring target #304

Closed
babel-bot opened this issue Jan 17, 2017 · 0 comments · Fixed by #339
Closed

doesn't validate patterns correctly in destructuring target #304

babel-bot opened this issue Jan 17, 2017 · 0 comments · Fixed by #339

Comments

@babel-bot
Copy link

babel-bot commented Jan 17, 2017

Original issue submitted by @gsathya in babel/babel#5099

Input Code

var { ...{x =5 } } = {x : 1}; console.log(x);

REPL

Babel Configuration (.babelrc, package.json, cli command)

Presets - stage3

Expected Behavior

→ ./out.gn/x64.debug/d8 -harmony-object-rest-spread -e "var { ...{x =5 } } = {x : 1}; print(x);" 
1

Current Behavior

Syntax error

Possible Solution

Doesn't validate patterns correctly in destructuring target

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