nodes: continue while .. over while .. then

This commit is contained in:
satyr
2010-10-25 01:05:37 +09:00
parent cecae0f965
commit aed0e8790e
2 changed files with 6 additions and 8 deletions

View File

@@ -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;
})();