raymaso / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch
Apache License 2.0
0 stars 0 forks source link

javascript diff_cleanupSemantic uses negative indexes in the equalities array #89

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
javascript diff_cleanupSemantic uses negative indexes in the equalities array.

This is because it equalitiesLength is allowed to go into a negative range.

Normally this doesn't cause any problems, because it will just be stored as a 
property on the array, but Safari 1.5.x seems to have some issues and doesn't 
always get the value that's stored in equalities[-1] back out. (Or perhaps it 
didn't properly go in in some cases.)

Original issue reported on code.google.com by d...@twkie.net on 21 Jun 2013 at 10:48

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry, I meant Safari 5.1.x

Original comment by d...@twkie.net on 21 Jun 2013 at 10:51