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

Fails on deconstructing process.env #1

Open
einarlove opened this issue Mar 9, 2017 · 0 comments
Open

Fails on deconstructing process.env #1

einarlove opened this issue Mar 9, 2017 · 0 comments
Labels

Comments

@einarlove
Copy link
Member

If you write const { VARIABLE } = process.env you get an error

Cannot read property 'name' of undefined

One solution is to escape if node.parent.property does not have a name, or try to make this work with deconstructions.

node.parent.init.object.name => process
node.parent.init.object.name => env

@einarlove einarlove added the bug label Mar 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant