jashkenas/coffee-script — Issue #1974: Issue with object literal definition
Author: maccman
Created: 2011-12-26 16:58:56+00:00
State: open

Not quite sure what to call this bug (so I'm finding it hard to search for dups), but this exists in both the released version of CoffeeScript and master:

params or=
data: {index: index}
processData: true

Translates to:

params || (params = {
data: {
index: index
}
});

({
processData: true
});