|
|
@@ -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 {
|