(src, target, toMatch)
| 4600 | } |
| 4601 | } |
| 4602 | sloppyMatches(src, target, toMatch) { |
| 4603 | if (target["match"]) { |
| 4604 | return !!target.match(toMatch); |
| 4605 | } else if (target["matches"]) { |
| 4606 | return target.matches(toMatch); |
| 4607 | } else { |
| 4608 | throw new Error("The value of " + src.sourceFor() + " does not have a match or matches method on it"); |
| 4609 | } |
| 4610 | } |
| 4611 | static parse(parser) { |
| 4612 | var expr = parser.parseElement("mathOperator"); |
| 4613 | var comparisonToken = parser.matchAnyOpToken("<", ">", "<=", ">=", "==", "===", "!=", "!=="); |