String#replace String#match and regexp.lastIndex

Brendan Eich brendan at mozilla.com
Wed Jul 1 10:29:46 PDT 2009


On Jul 1, 2009, at 10:08 AM, Steve L. wrote:

> Opera 9.64 (and other versions I've previously tested this issue  
> with) alerts A: 2, 4, 6, 8 and B: 0. Like you, this is my  
> interpretation of correct handling according to the spec. Opera  
> tends to follow the spec most closely for regex issues, in general.

This seems like a bug for other vendors than Opera to fix. Filed:

https://bugzilla.mozilla.org/show_bug.cgi?id=501739

I suspect no one will mind the fix, and a few will welcome it. But we  
will have to try it out on real developers and users to be sure.

/be


More information about the es-discuss mailing list