Spec-compliant polyfill for String.prototype.replaceAll ESnext proposal