PatienceDiff
PatienceDiff copied to clipboard
Workaround for my 'all removed/all added' example problem from ages back.
Hi - I finally worked around to looking at this again.
I found that in findUnique(), Chrome didn't like having Set()s as the Map() keys: they all compared as different, so everything had its own index. Turning them all into strings fixed it for me.
- let line = arr.slice( i, i + unit );
+ let line = arr.slice( i, i + unit ).join("\n");
I'd offer a for-real patch, but your set-up seems to work for you; odd that it's different for me.
Are you running in Node, and not a browser?
Is this a bug in Chrome's JS, do you think?