{"ScriptPreparationCode":"const array_from = Array.from\r\nconst math_random = Math.random\r\n\r\nfunction mapToObject (map) {\r\n\tconst obj = {}\r\n\tmap.forEach((value, key) =\u003E {\r\n\t\tobj[key] = array_from(value)\r\n\t})\r\n\treturn obj\r\n}\r\n\r\nconst randInt = (min, max) =\u003E ((math_random() * (max - min) \u002B min) | 0)\r\nvar map_obj = new Map()\r\nconst add_random_entry = () =\u003E {\r\n\tmap_obj.set(randInt(0, 2000), new Set(\r\n\t\tArray(randInt(0, 20)).fill(0).map(\r\n\t\t\t() =\u003E randInt(-500, 500)\r\n\t\t)\r\n\t))\r\n}\r\nfor (let i = 0; i \u003C 500; i\u002B\u002B) { add_random_entry() }\r\n","TestCases":[{"Name":"Object cloning","Code":"let obj = mapToObject(map_obj)\r\n// ensure that jit does not simply jump to disposing of obj\r\nobj[12] ? (obj[12][0] \u002B= 1) : delete obj[12]\r\nobj = undefined","IsDeferred":false},{"Name":"structuredClone","Code":"let map_cloned = structuredClone(map_obj)\r\n// ensure that jit does not simply jump to disposing of map_cloned\r\nmap_cloned.get(12) ? (map_cloned.get(12).add(-1)) : (map_cloned.set(12, new Set([5, 5, 5])))\r\nmap_cloned = undefined","IsDeferred":false}]}