{"ScriptPreparationCode":null,"TestCases":[{"Name":"Recursive","Code":"const getFunction = ( name, obj ) =\u003E {\r\n\tconst proto = Object.getPrototypeOf( obj );\r\n\tif( ! ( proto instanceof Object ) )\r\n\t\treturn;\r\n// \tconsole.log( proto );\r\n\treturn proto[ name ] || getFunction( name, proto )\r\n// \tconst value = proto[ key ];\r\n// \tif( value !== undefined )\r\n// \t\treturn value;\r\n// \treturn getProtoProp( key )( proto );\r\n} \r\n\r\ngetFunction( \u0022then\u0022, Promise.resolve( 5 ) );","IsDeferred":false},{"Name":"Object.create","Code":"const getFunction = ( name, obj ) =\u003E {\r\n\tconst proto = Object.getPrototypeOf( obj );\r\n\tif( ! ( proto instanceof Object ) )\r\n\t\treturn;\r\nreturn Object.create( proto )[ name ];\r\n\r\n// \tconsole.log( proto );\r\n\treturn proto[ name ] || getFunction( name, proto )\r\n// \tconst value = proto[ key ];\r\n// \tif( value !== undefined )\r\n// \t\treturn value;\r\n// \treturn getProtoProp( key )( proto );\r\n} \r\n\r\ngetFunction( \u0022then\u0022, Promise.resolve( 5 ) );","IsDeferred":false}]}