the below snippet is working fine in the local environment, but it’s failing as a custom app. the same code working fine on old apps.
is there anything I am missing here?
String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.replace(new RegExp(search, "g"), replacement);
};
Got the following error:
Error while running the server code inside the sandboxExecutor. - server.js:125, SyntaxError: Unexpected end of input\n at new Script (vm.js:83:7)