{"ScriptPreparationCode":null,"TestCases":[{"Name":"reg.exec","Code":"const arr = _arr;\r\nconst len = arr.length;\r\nlet r = 0;\r\nfor (let i = 0; i \u003C len; i\u002B\u002B) {\r\n const reg = /\\]/g;\r\n const positions = [];\r\n let match;\r\n const basic_path = arr[i];\r\n while ((match = reg.exec(basic_path)) !== null) {\r\n positions.push(match.index);\r\n }\r\n r \u002B= positions.length;\r\n}\r\nwindow.tmp_r1 = r;\r\n","IsDeferred":false},{"Name":"for-indexOf","Code":"const arr = _arr;\r\nconst len = arr.length;\r\nlet r = 0;\r\nfor (let i = 0; i \u003C len; i\u002B\u002B) {\r\n const positions = [];\r\n const basic_path = arr[i];\r\n for (let j = 0; (j = basic_path.indexOf(\u0027]\u0027, j)) \u003E= 0; j\u002B\u002B) {\r\n positions.push(j);\r\n }\r\n r \u002B= positions.length;\r\n}\r\nwindow.tmp_r3 = r;\r\n","IsDeferred":false}]}