Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for...of supported array/collection types #2973

Closed
djarekg opened this issue Apr 30, 2015 · 1 comment
Closed

for...of supported array/collection types #2973

djarekg opened this issue Apr 30, 2015 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@djarekg
Copy link

djarekg commented Apr 30, 2015

If for (var v of expr) { } is emitted as..

for (var _i = 0, _a = expr; _i < _a.length; _i++) {
var v = _a[_i];
}

then shouldn't HTMLCollections be allowed since were just looping over the indexes?

@mhegazy
Copy link
Contributor

mhegazy commented Apr 30, 2015

This looks like a dupe of #2695. It should be fixed in the TS 1.6

@mhegazy mhegazy added the Duplicate An existing issue was already created label Apr 30, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants