mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
nothing much
This commit is contained in:
@@ -1606,11 +1606,11 @@
|
|||||||
_a = []; _b = this.condition;
|
_a = []; _b = this.condition;
|
||||||
for (i = 0, _c = _b.length; i < _c; i++) {
|
for (i = 0, _c = _b.length; i < _c; i++) {
|
||||||
cond = _b[i];
|
cond = _b[i];
|
||||||
_a.push(new OpNode('is', (i === 0 ? assigner : this.switcher), cond));
|
_a.push(new OpNode('==', (i === 0 ? assigner : this.switcher), cond));
|
||||||
}
|
}
|
||||||
return _a;
|
return _a;
|
||||||
} else {
|
} else {
|
||||||
return new OpNode('is', assigner, this.condition);
|
return new OpNode('==', assigner, this.condition);
|
||||||
}
|
}
|
||||||
}).call(this);
|
}).call(this);
|
||||||
if (this.is_chain()) {
|
if (this.is_chain()) {
|
||||||
|
|||||||
@@ -1209,9 +1209,9 @@ exports.IfNode: class IfNode extends BaseNode
|
|||||||
@switcher: variable
|
@switcher: variable
|
||||||
@condition: if @multiple
|
@condition: if @multiple
|
||||||
for cond, i in @condition
|
for cond, i in @condition
|
||||||
new OpNode('is', (if i is 0 then assigner else @switcher), cond)
|
new OpNode('==', (if i is 0 then assigner else @switcher), cond)
|
||||||
else
|
else
|
||||||
new OpNode('is', assigner, @condition)
|
new OpNode('==', assigner, @condition)
|
||||||
@else_body.rewrite_condition(@switcher) if @is_chain()
|
@else_body.rewrite_condition(@switcher) if @is_chain()
|
||||||
this
|
this
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user