{"ScriptPreparationCode":null,"TestCases":[{"Name":"deconstruct","Code":"\u0022use strict\u0022;\r\nclass Box {\r\n constructor(params = {}) {\r\n var { x = 0, y = [1,2,3], height = 1, width = 1 } = params;\r\n this.x = x;\r\n this.y = y;\r\n this.height = height;\r\n this.width = width;\r\n }\r\n}\r\nconst b = new Box({ x:3, y: [4,5,6], height: 23, width: 1});\r\nconsole.assert(b.x === 3)","IsDeferred":false},{"Name":"Object.assign","Code":"class Box {\r\n constructor(params = {}){\r\n \tthis.x = 0;\r\n this.y = [1,2,3];\r\n this.height = 1;\r\n this.width = 1;\r\n Object.assign(this, params);\r\n }\r\n}\r\nconst a = new Box({ x:3, y: [4,5,6], height: 23, width: 1});\r\nconsole.assert(a.x === 3)","IsDeferred":false}]}