{"ScriptPreparationCode":"const SIZE = 100000;\r\nvar chars = new Array(SIZE);\r\nfor (let index = 0; index \u003C SIZE; index\u002B\u002B) {\r\n chars[index] = String.fromCodePoint(\r\n Math.floor( Math.random() * 0x80 )\r\n );\r\n}\r\nvar newChars = new Array(SIZE);","TestCases":[{"Name":"Outside, literal","Code":"const regexp = /[\\x00-\\x1f\\x7f]/g;\r\nfor (const char of chars) {\r\n newChars.push(char.replace(regexp, \u0022\u0022));\r\n}\r\nconsole.log(newChars);","IsDeferred":false},{"Name":"Inside, literal","Code":"for (const char of chars) {\r\n newChars.push(char.replace(/[\\x00-\\x1f\\x7f]/g, \u0022\u0022));\r\n}\r\nconsole.log(newChars);","IsDeferred":false},{"Name":"Outside, object","Code":"const regexp = new RegExp(\u0022[\\x00-\\x1f\\x7f]\u0022);\r\nfor (const char of chars) {\r\n newChars.push(char.replace(regexp, \u0022\u0022));\r\n}\r\nconsole.log(newChars);","IsDeferred":false},{"Name":"Inside, object","Code":"for (const char of chars) {\r\n newChars.push(char.replace(new RegExp(\u0022[\\x00-\\x1f\\x7f]\u0022), \u0022\u0022));\r\n}\r\nconsole.log(newChars);","IsDeferred":false}]}