@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.
@@ -3378,6 +3378,7 @@ var Node = class {
3378
3378
  * Note that this can return `descendant` itself.
3379
3379
  */
3380
3380
  childWithDescendant(descendant) {
3381
+ if (descendant.tree !== this.tree) return null;
3381
3382
  marshalNode(this);
3382
3383
  marshalNode(descendant, 1);
3383
3384
  C._ts_node_child_with_descendant_wasm(this.tree[0]);