mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
nodes: continue while .. over while .. then
This commit is contained in:
@@ -243,7 +243,7 @@
|
||||
Expressions.prototype.compileExpression = function(node, o) {
|
||||
var code;
|
||||
while (node !== (node = node.unwrap())) {
|
||||
|
||||
continue;
|
||||
}
|
||||
node = node.unfoldSoak(o) || node;
|
||||
node.tags.front = true;
|
||||
@@ -997,14 +997,13 @@
|
||||
return new Op(this.context.slice(0, -1), left, new Assign(rite, this.value)).compile(o);
|
||||
};
|
||||
Assign.prototype.matchParens = function(o, obj) {
|
||||
var _ref2, idx;
|
||||
while (obj !== (obj = obj.unwrap())) {
|
||||
|
||||
continue;
|
||||
}
|
||||
if (!(obj instanceof Literal || obj instanceof Value)) {
|
||||
throw SyntaxError('nonreference in destructuring assignment shorthand.');
|
||||
}
|
||||
return _ref2 = Value.wrap(obj).cacheReference(o), obj = _ref2[0], idx = _ref2[1], _ref2;
|
||||
return Value.wrap(obj).cacheReference(o);
|
||||
};
|
||||
return Assign;
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user