jashkenas/coffee-script — Issue #1926: Invalid compiler output: var ;
Author: epeli
Created: 2011-12-11 10:39:42+00:00
State: open

Try compiling and running this on CoffeeScript 1.1.3

```coffeescript
do ->
for i in [1..2]
for j in [1..2] then do (i) =>
console.log i
```

It will result in

```javascript
(function() {
var i, j, _results;
_results = [];
for (i = 1; i <= 2; i++) {
_results.push((function() {
var _results2;
var ;
_results2 = [];
for (j = 1; j <= 2; j++) {
_results2.push((function(i) {
return console.log(i);
})(i));
}
return _results2;
}).call(this));
}
return _results;
})();
```

Which is invalid Javascript. There is a var statement without a variable name.

This used to work in 1.1.2.