concordancejs / concordance

Compare, format, diff and serialize any JavaScript value

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Descriptors should behave the same even if recursed multiple times

novemberborn opened this issue · comments

Recursors should retain their state. If a new recursion is started they should provide the same values as they did in a previous recursion.

This is useful because comparisons halt recursion as soon as a difference is found. The descriptors may then be used to generate a diff. The diff should reflect the difference found when comparing, so the recursors need to retain state.