{"ScriptPreparationCode":"var Vec2 = function(x, y) {\r\n this.x = x || 0;\r\n this.y = y || 0;\r\n return this;\r\n};\r\n\r\nVec2.prototype.add = function(v, y) {\r\n if (arguments.length === 1) {\r\n this.x \u002B= v.x;\r\n this.y \u002B= v.y;\r\n } else {\r\n this.x \u002B= v;\r\n this.y \u002B= y;\r\n }\r\n return this;\r\n};","TestCases":[{"Name":"Prototype","Code":"var v = Vec2();\r\nv.add(1, 1);","IsDeferred":false},{"Name":"No prototype","Code":"var v = Vec2();\r\nv.x \u002B= 1;\r\nv.y \u002B= 1;","IsDeferred":false}]}