{"ScriptPreparationCode":"// Mock handler sets\r\nconst navigationHandlers = Array.from({ length: 50000 }, (_, i) =\u003E [\u0060nav-${i}\u0060, () =\u003E i]);\r\nconst titlebarHandlers = Array.from({ length: 50000 }, (_, i) =\u003E [\u0060title-${i}\u0060, () =\u003E i]);\r\nconst tabHandlers = Array.from({ length: 50000 }, (_, i) =\u003E [\u0060tab-${i}\u0060, () =\u003E i]);\r\n\r\nfunction createSyncHandlerMap_loops() {\r\n const map = new Map();\r\n\r\n for (const [msg, h] of navigationHandlers) map.set(msg, h);\r\n for (const [msg, h] of titlebarHandlers) map.set(msg, h);\r\n for (const [msg, h] of tabHandlers) map.set(msg, h);\r\n\r\n return map;\r\n}\r\n\r\nfunction createSyncHandlerMap_spread() {\r\n return new Map([\r\n ...navigationHandlers,\r\n ...titlebarHandlers,\r\n ...tabHandlers,\r\n ]);\r\n}","TestCases":[{"Name":"Using For-Of Loops","Code":"const map = createSyncHandlerMap_loops();","IsDeferred":false},{"Name":"Using Spread","Code":"const map = createSyncHandlerMap_spread();","IsDeferred":false}]}