mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix property chain orders of Operators in isDotExpression and isSomPredicate
This commit is contained in:
parent
2146d93609
commit
22cc9b7dc7
2 changed files with 13 additions and 4 deletions
|
@ -661,14 +661,14 @@ class AstBinaryOperator extends Leaf {
|
|||
}
|
||||
|
||||
isDotExpression() {
|
||||
return Operators.id.dot <= this.id && this.id <= Operators.id.dotHash;
|
||||
return Operators.dot.id <= this.id && this.id <= Operators.dotHash.id;
|
||||
}
|
||||
|
||||
isSomPredicate() {
|
||||
return (
|
||||
this.isDotExpression() ||
|
||||
(Operators.id.lt <= this.id &&
|
||||
this.id <= Operators.id.or &&
|
||||
(Operators.lt.id <= this.id &&
|
||||
this.id <= Operators.or.id &&
|
||||
((this.left.isDotExpression() && this.right.isConstant()) ||
|
||||
(this.left.isConstant() && this.right.isDotExpression()) ||
|
||||
(this.left.isDotExpression() && this.right.isDotExpression())))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue