ISC_Core.js overwrites String.prototype.replaceAll with its own implementation, which is incompatible with native implementation - it doesn't support passing a callback as "replacement".
This code:
should result in
but currently it generates:
MDN docs: https://developer.mozilla.org/en-US/...ll#replacement
Current SmartClient implementation (v13.0p_2024-04-08/AllModules Development Only):
This code:
Code:
"a1b2a3b".replaceAll(/\d/g, (match) => `-${match}-`)
Code:
a-1-b-2-a-3-b
Code:
a(match) => `-${match}-`b(match) => `-${match}-`a(match) => `-${match}-`b
Current SmartClient implementation (v13.0p_2024-04-08/AllModules Development Only):
Code:
replaceAll : function (source, find, replacement) { return source.split(find).join(replacement); },
Comment