P4help wantedmoz
Repository metrics
- Stars
- (8,937 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
[for (i of [1,2,3]) i]
Jshint will warn that i is undeclared. Should it? This makes the warning go away:
var i;
[for (i of [1,2,3]) i]
but seems dubious. For example, in the traceur-generated code, the two "i"s are different "i"s. The "i" in the comprehension is scoped to the comprehension.