Closed edsu closed 9 years ago
I've seen this crash, and it was reported in Gitter today as well. The problem seems to be the assumption in this code that the 5th capture will match /([+-]\d+)/
:
// convert change in characters to a (possibly negative) integer
if (m[5]) {
var delta = parseInt(/([+-]\d+)/.exec(m[5])[1]);
} else {
var delta = null;
}
Is it ok to have this just fail quitely, i.e. just go to the else instead?
Thanks, yes. Ideally I'd like to see why it's not matching. @jarib does yours crash quickly as well or does it continue for a bit? Mine seems to run fine for many hours before encountering an error like this.
fixed in [32d88d4e3f361a39add7ea54b60de2f008392b9c]