binding_web: Add Query.didExceedMatchLimit

This lets wasm clients check whether a query exceeded its maximum number
of in-progress matches.
This commit is contained in:
Douglas Creager 2021-04-27 09:21:38 -04:00
parent b5ec720696
commit e8eb3c5d5a
4 changed files with 32 additions and 0 deletions

View file

@ -1048,6 +1048,10 @@ class Query {
predicatesForPattern(patternIndex) {
return this.predicates[patternIndex]
}
didExceedMatchLimit() {
return C._ts_query_did_exceed_match_limit_wasm(this[0]);
}
}
function getText(tree, startIndex, endIndex) {