I’m looking for a javascript diff algorithm implementation or library, which has been tested on and works with arbitrary utf8 text files.
All of the ones I found so far (say for example, http://ejohn.org/projects/javascript-diff-algorithm/) fail on corner cases
(Try using a file which contains the string '__proto__' in my example library.)
Maybe this will help you — jsdiff