wasm: Add matchLimit option to query methods
This exposes the new configurable match limits for query cursors.
This commit is contained in:
parent
1f6eac555c
commit
ad3907c2a6
3 changed files with 37 additions and 7 deletions
|
|
@ -256,7 +256,7 @@ describe("Query", () => {
|
|||
(array (identifier) @pre (identifier) @post)
|
||||
`);
|
||||
|
||||
const captures = query.captures(tree.rootNode);
|
||||
const captures = query.captures(tree.rootNode, null, null, {matchLimit: 32});
|
||||
assert.ok(query.didExceedMatchLimit());
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue