This commit is contained in:
Jeremy Ashkenas
2011-12-14 12:44:27 -05:00
parent ddfe89d916
commit fac615108c
3 changed files with 3 additions and 4 deletions

View File

@@ -70,8 +70,7 @@
return total;
};
trackUnprocessedFiles = function(sourceIndex, fileCount) {
var _ref2;
if ((_ref2 = unprocessed[sourceIndex]) == null) unprocessed[sourceIndex] = 0;
if (unprocessed[sourceIndex] == null) unprocessed[sourceIndex] = 0;
return unprocessed[sourceIndex] += fileCount;
};
trackCompleteFiles = function(sourceIndex, fileCount) {

View File

@@ -1862,7 +1862,7 @@
Op.prototype.compileExistence = function(o) {
var fst, ref;
if (this.first.isComplex()) {
if (this.first.isComplex() && o.level > LEVEL_TOP) {
ref = new Literal(o.scope.freeVariable('ref'));
fst = new Parens(new Assign(ref, this.first));
} else {

View File

@@ -1400,7 +1400,7 @@ exports.Op = class Op extends Base
"(#{code})"
compileExistence: (o) ->
if @first.isComplex()
if @first.isComplex() and o.level > LEVEL_TOP
ref = new Literal o.scope.freeVariable 'ref'
fst = new Parens new Assign ref, @first
else