jashkenas/coffee-script — Issue #1951: Regression: Object Definition with Newlines
Author: InScopeApps
Created: 2011-12-20 03:21:11+00:00
State: open

```
p= (p.children[c]?=
name: c
path: thisPath
attr: null
badgeClass: null
children: null
parent: p
isExpanded: expansionState[thisPath] ? false
)
```

Results in incorrect JS:

```
var p, _base, _ref, _ref2;

p = ((_ref = (_base = p.children)[c]) != null ? _ref : _base[c] = {
name: c
}, {
path: thisPath,
attr: null,
badgeClass: null,
children: null,
parent: p,
isExpanded: (_ref2 = expansionState[thisPath]) != null ? _ref2 : false
});
```

In 1.1.3 the resulting JS was correct:

```
p = ((_ref9 = (_base2 = p.children)[c]) != null ? _ref9 : _base2[c] = {
name: c,
path: thisPath,
attr: null,
badgeClass: null,
children: null,
parent: p,
isExpanded: (_ref10 = expansionState[thisPath]) != null ? _ref10 : false
});
```

[Example](http://tinyurl.com/buahk6a)