Explorar o código

EAGLESIX-3004: e replaced with the currval.

Scott Munday %!s(int64=11) %!d(string=hai) anos
pai
achega
db97224c1b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lib/pipeline/matcher/MatchExpressionParser.js

+ 2 - 2
lib/pipeline/matcher/MatchExpressionParser.js

@@ -152,11 +152,11 @@ proto._parse = function _parse(obj, level){
 					return status;
 				root.add(status.result);*/
 			} else if ('text' === rest) {
-				if (e._type !== 'Object') {
+				if (currval !== 'Object') {
 					return {code: ErrorCodes.BAD_VALUE, description: '$text expects an object'};
 				}
 
-				return this.expressionTextCallback(e);
+				return this.expressionTextCallback(currval);
 			}
 			else if ("comment" == rest) {}
 			else {