@willbooster/web-tree-sitter 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/web-tree-sitter",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Tree-sitter bindings for the web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -2778,6 +2778,7 @@ var Node = class {
2778
2778
  * Note that this can return `descendant` itself.
2779
2779
  */
2780
2780
  childWithDescendant(descendant) {
2781
+ if (descendant.tree !== this.tree) return null;
2781
2782
  marshalNode(this);
2782
2783
  marshalNode(descendant, 1);
2783
2784
  C._ts_node_child_with_descendant_wasm(this.tree[0]);