{"ScriptPreparationCode":null,"TestCases":[{"Name":"Class","Code":"class PositionComponent {\r\n constructor(x, y) {\r\n if(typeof x !== \u0027number\u0027) throw new Error(\u0027x must be a number\u0027);\r\n if(typeof y !== \u0027number\u0027) throw new Error(\u0027y must be a number\u0027);\r\n this.x = x;\r\n this.y = y;\r\n }\r\n}\r\n\r\nfor(let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n const component = new PositionComponent(i, i);\r\n}","IsDeferred":false},{"Name":"Factory","Code":"const createPositionComponent = (x, y) =\u003E {\r\n if(typeof x !== \u0027number\u0027) throw new Error(\u0027x must be a number\u0027);\r\n if(typeof y !== \u0027number\u0027) throw new Error(\u0027y must be a number\u0027);\r\n return {\r\n x: x,\r\n y: y,\r\n };\r\n}\r\n\r\nfor(let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n const component = createPositionComponent(i, i);\r\n}","IsDeferred":false}]}