in reply to Infinite m//g ??

I have no clue whether this is known, but this looks a heck of a lot like a bug to me.

A /g match is supposed to start where the previous one left off. Not before it.

Also FYI the intent is to preserve backwards compatibility. If that didn't happen, it is generally by accident. (There are some exceptions to this rule where backwards compatibility is ruled not important enough, but they are rather few in number.)