Does the RegExp /y modifier require /g?

2007-12-24 Thread StevenLevithan
(I emailed this to the list last night, but it doesn't seem to have gone through. Sorry if this becomes a dupe.) - As far as I understand from ECMA-262 3rd Edition, the regexp.lastIndex property is meaningless if a regexp does not use the /g modifier. Quoting from E262v3 ยง15.10.6.2

Re: Does the RegExp /y modifier require /g?

2007-12-24 Thread Brendan Eich
On Dec 24, 2007, at 8:44 AM, StevenLevithan wrote: (I emailed this to the list last night, but it doesn't seem to have gone through. Sorry if this becomes a dupe.) (I don't see a moderator request based on your sending from a different e-mail address -- I don't see a dup either.) Given