01:46 | <Domenic> | Honestly my instinct is that people passing regexps to indexof is nonzero but maybe low enough to be OK. On the other hand the benefits (vs. an overload or whatever) are maybe low enough that any nonzero usage would be enough to stop the proposal. |
01:59 | <ljharb> | it'd certainly be web compatible to, when lastIndex isn't 0 and setting it fails, just respect the lastIndex that's there - but basically nobody freezes regexes anyways |
20:20 | <keithamus> | Not exhaustive but https://github.com/search?q=%28language%3Ajavascript+OR+language%3Atypescript%29+%2FindexOf%5C%28%5C%2F%2F&type=code could provide some insight into code that does this. |
21:11 | <ljharb> | lots of those seem like tsdoc comments at least |