String.prototype.replaceAll = function(search, replacement) { var target = this; return target.replace(new RegExp(search, 'g'), replacement); };
{"ScriptPreparationCode":null,"TestCases":[{"Name":"a1","Code":"\u0022\\\u0022Kelly\\\u0022\u0022.replace(/\u0022/g, \u0022\u0022);","IsDeferred":false},{"Name":"a2","Code":"\u0022\\\u0022Kelly\\\u0022\u0022.replaceAll(\u0022\\\u0022\u0022, \u0022\u0022);","IsDeferred":false}]}