Erik Arvidsson (2014-06-12T21:36:39.000Z)
Somehow I missed when we decided to allow null/undefined as the iterable
value in for-of loops.

The following test passes using the spec algorithms:

var c = 0;
for (var x of null) {
  c++;
}
assert.equal(c, 0);

However, if we get a null value here we are most likely just masking an
user bug.

I assume the justification is that for-in allows null here? However, for-of
is new syntax and we have the chance to get this right this time around.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140612/a41d35fd/attachment-0001.html>
domenic at domenicdenicola.com (2014-06-17T20:48:31.447Z)
Somehow I missed when we decided to allow null/undefined as the iterable
value in for-of loops.

The following test passes using the spec algorithms:

```js
var c = 0;
for (var x of null) {
  c++;
}
assert.equal(c, 0);
```

However, if we get a null value here we are most likely just masking an
user bug.

I assume the justification is that for-in allows null here? However, for-of
is new syntax and we have the chance to get this right this time around.