Null iterable in for-of?

Domenic Denicola domenic at
Tue Jun 17 13:53:15 PDT 2014

> It sounds like the the tide is swinging towards bug finding rather than consistency in this case.  I'm fine with and and will update the spec. accordingly.

The conclusion here wasn't exactly clear to me. Is it the following?

- for-in continues to do zero iterations
- for-of throws a TypeError
- comprehensions throw a TypeError

More information about the es-discuss mailing list