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

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Mon Oct 24 10:40:03 UTC 2016


+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