RFR: 8164708: String.prototype.replace replaces empty match twice

Attila Szegedi szegedia at gmail.com
Mon Oct 24 11:12:41 UTC 2016


+1

On Monday, October 24, 2016, Sundararajan Athijegannathan <
sundararajan.athijegannathan at oracle.com> wrote:

> +1
>
> -Sundar
>
>
> On 10/21/2016 8:51 PM, Hannes Wallnöfer wrote:
> > Please review:
> >
> > Bug: https://bugs.openjdk.java.net/browse/JDK-8164708
> > Webrev: http://cr.openjdk.java.net/~hannesw/8164708/webrev/
> >
> > We need to always advance the index of a global replace if previous
> match string was empty. It seems like this is a spec bug in ES5 that was
> fixed in ES6.
> >
> > Thanks,
> > Hannes
>
>


More information about the nashorn-dev mailing list