mishoo/UglifyJS — pull request #403 by RGustBardon (2012-05-31 10:14:04+00:00)
Title: Implement #391 and transform binary indexOf

This patch implements #391 (substituting `String.prototype.match` with `RegExp.prototype.exec` when a regular expression literal does not have the global flag) and also transforms some equality expressions involving a numeric literal `-1` and a call to `Array.prototype.indexOf` and `String.prototype.indexOf` on a literal (e.g. `"".indexOf("")==-1` becomes `"".indexOf("")<0`).