Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Variable in array comprehension causes block-scoped-var #148

Closed
zspecza opened this issue Jul 15, 2015 · 4 comments
Closed

Variable in array comprehension causes block-scoped-var #148

zspecza opened this issue Jul 15, 2015 · 4 comments

Comments

@zspecza
Copy link

zspecza commented Jul 15, 2015

Caused in this snippet:

function entries(obj) {
  return (for (key of Object.keys(obj)) [key, obj[key]])
}
@hzoo
Copy link
Member

hzoo commented Jul 16, 2015

Thanks - will need to do some more escope hacks - not sure at the moment

@hzoo hzoo added the escope label Jul 16, 2015
@sunjay
Copy link

sunjay commented Aug 11, 2015

Any update on this? This problem still occurs for me.

@sebmck
Copy link
Contributor

sebmck commented Aug 11, 2015

@sunjay Yeah, that's why the issue is still open. 😛

@hzoo
Copy link
Member

hzoo commented Oct 8, 2015

Goina close since comprehensions are going to be remove in babel 6 (not on standards track)

@hzoo hzoo closed this as completed Oct 8, 2015
@hzoo hzoo removed the help wanted label Oct 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants