{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using the spread operator","Code":"const firstObject = new Error(\u0027Network Error!\u0027)\r\nconst result = {\r\n\t...firstObject,\r\n \tstatusCode: \u0027123\u0027\r\n};","IsDeferred":false},{"Name":"Using Object.assign","Code":"const result = Object.assign(new Error(\u0027Network Error!\u0027), { statusCode: \u0027123\u0027 });","IsDeferred":false}]}