:scope appears to use different equality semantics depending on context length.
Current behavior:
- With a single context node, matching uses adapter
equals.
- With multiple context nodes, matching uses
context.includes(element) (reference equality).
Impact:
- Custom adapters that rely on
equals semantics can return incorrect results when context.length > 1.
Expected:
:scope should use adapter-aware equality consistently for single and multiple context nodes.
:scopeappears to use different equality semantics depending on context length.Current behavior:
equals.context.includes(element)(reference equality).Impact:
equalssemantics can return incorrect results whencontext.length > 1.Expected:
:scopeshould use adapter-aware equality consistently for single and multiple context nodes.