Explorar o código

EAGLESIX-2651: Expression: fix missing require

Kyle P Davis %!s(int64=11) %!d(string=hai) anos
pai
achega
237b92d633
Modificáronse 1 ficheiros con 8 adicións e 7 borrados
  1. 8 7
      lib/pipeline/expressions/Expression.js

+ 8 - 7
lib/pipeline/expressions/Expression.js

@@ -19,7 +19,8 @@ var Expression = module.exports = function Expression() {
 
 
 
 
 var Value = require("../Value"),
 var Value = require("../Value"),
-	Document = require("../Document");
+	Document = require("../Document"),
+	Variables = require("./Variables");
 
 
 
 
 /**
 /**
@@ -84,12 +85,12 @@ var ObjectCtx = Expression.ObjectCtx = (function() {
  */
  */
 klass.parseObject = function parseObject(obj, ctx, vps) {
 klass.parseObject = function parseObject(obj, ctx, vps) {
 	if (!(ctx instanceof ObjectCtx)) throw new Error("ctx must be ObjectCtx");
 	if (!(ctx instanceof ObjectCtx)) throw new Error("ctx must be ObjectCtx");
-    /*
-      An object expression can take any of the following forms:
+	/*
+	  An object expression can take any of the following forms:
 
 
-      f0: {f1: ..., f2: ..., f3: ...}
-      f0: {$operator:[operand1, operand2, ...]}
-    */
+	  f0: {f1: ..., f2: ..., f3: ...}
+	  f0: {$operator:[operand1, operand2, ...]}
+	*/
 
 
 	var expression, // the result
 	var expression, // the result
 		expressionObject, // the alt result
 		expressionObject, // the alt result
@@ -205,7 +206,7 @@ klass.parseExpression = function parseExpression(exprElementKey, exprElementValu
 		op = Expression.expressionParserMap;
 		op = Expression.expressionParserMap;
 	if (!op) throw new Error("invalid operator : " + exprElementKey + "; uassert code 15999");
 	if (!op) throw new Error("invalid operator : " + exprElementKey + "; uassert code 15999");
 
 
-    // make the expression node
+	// make the expression node
 	return op(exprElementValue, vps);
 	return op(exprElementValue, vps);
 };
 };