jashkenas/coffee-script — Issue #2079: 1.2.0: compiler error
Author: lookfirst
Created: 2012-01-30 09:16:16+00:00
State: open

Apologies if this is a dupe... this is the smallest case I could come up with:

```
f: ->
a: _.map d, (e) ->
b: 'a'
```

This works, putting parens around the map:

```
f: ->
a: _.map(d, (e) ->
b: 'a')
```

```
Error: In foo.coffee, Parse error on line 122: Unexpected ','
at Object.parseError (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/parser.js:470:11)
at Object.parse (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/parser.js:546:22)
at Object.compile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:40:22)
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:140:33
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:110:18
at [object Object]. (fs.js:115:5)
at [object Object].emit (events.js:64:17)
at afterRead (fs.js:1111:12)
at Object.wrapper [as oncomplete] (fs.js:254:17)
```