{"ScriptPreparationCode":null,"TestCases":[{"Name":"Object Property","Code":"class Bar {\r\n constructor() {\r\n this.prop = {\r\n foo: function() {\r\n console.log(\u0027foo!\u0027)\r\n }\r\n }\r\n }\r\n test() {\r\n if(this.prop.foo) {\r\n this.prop.foo()\r\n }\r\n }\r\n}\r\n\r\nconst b = new Bar()\r\nb.test()","IsDeferred":false},{"Name":"Local Variable","Code":"class Bar {\r\n constructor() {\r\n this.prop = {\r\n foo: function() {\r\n console.log(\u0027foo!\u0027)\r\n }\r\n }\r\n }\r\n test() {\r\n const foo = this.prop.foo\r\n if(foo) {\r\n foo()\r\n }\r\n }\r\n}\r\n\r\nconst b = new Bar()\r\nb.test()","IsDeferred":false}]}