VisibilityRestriction.toString

This commit is contained in:
Tony Garnock-Jones 2019-06-03 12:03:13 +01:00
parent 9a8898e8ec
commit f19ecb69c8
1 changed files with 4 additions and 0 deletions

View File

@ -413,6 +413,10 @@ function VisibilityRestriction(paths, term) {
this.term = term;
}
VisibilityRestriction.prototype.toString = function () {
return "VisibilityRestriction(" + this.paths.toString() + "," + this.term.toString() + ")";
};
function unscope(a) {
return (a instanceof VisibilityRestriction) ? a.term : a;
}