Thanks. I've just made a bug for this: https://github.com/espruino/Espruino/issues/334
Any code contributions welcome ;) For now you can probably work around it by writing your own replace function though.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks. I've just made a bug for this: https://github.com/espruino/Espruino/issues/334
Any code contributions welcome ;) For now you can probably work around it by writing your own replace function though.