mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
subtle bug in the order of the rewriter rules was causing some if/else chains to get confused by implicit indentation
This commit is contained in:
@@ -807,9 +807,7 @@
|
||||
toString: function toString(idt) {
|
||||
var children;
|
||||
idt = (idt || '') + TAB;
|
||||
puts(this.body.expressions.length);
|
||||
children = _.flatten([this.params, this.body.expressions]);
|
||||
puts(children.length);
|
||||
return this.type + '\n' + _.map(children, function(child) {
|
||||
return idt + child.toString(idt);
|
||||
}).join('');
|
||||
|
||||
Reference in New Issue
Block a user