{"action":"created","issue":{"url":"https://api.github.com/repos/ternjs/tern/issues/778","repository_url":"https://api.github.com/repos/ternjs/tern","labels_url":"https://api.github.com/repos/ternjs/tern/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/ternjs/tern/issues/778/comments","events_url":"https://api.github.com/repos/ternjs/tern/issues/778/events","html_url":"https://github.com/ternjs/tern/pull/778","id":155725450,"number":778,"title":"Fixes endless recursion when evaluating type","user":{"login":"alexsaveliev","id":7010538,"avatar_url":"https://avatars.githubusercontent.com/u/7010538?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsaveliev","html_url":"https://github.com/alexsaveliev","followers_url":"https://api.github.com/users/alexsaveliev/followers","following_url":"https://api.github.com/users/alexsaveliev/following{/other_user}","gists_url":"https://api.github.com/users/alexsaveliev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsaveliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsaveliev/subscriptions","organizations_url":"https://api.github.com/users/alexsaveliev/orgs","repos_url":"https://api.github.com/users/alexsaveliev/repos","events_url":"https://api.github.com/users/alexsaveliev/events{/privacy}","received_events_url":"https://api.github.com/users/alexsaveliev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-19T12:31:55Z","updated_at":"2016-05-19T12:36:49Z","closed_at":"2016-05-19T12:36:49Z","pull_request":{"url":"https://api.github.com/repos/ternjs/tern/pulls/778","html_url":"https://github.com/ternjs/tern/pull/778","diff_url":"https://github.com/ternjs/tern/pull/778.diff","patch_url":"https://github.com/ternjs/tern/pull/778.patch"},"body":"Fixes endless recursion when trying to evaluate object's key type when object is enclosed into two functions (#777).\r\nTest case\r\n```\r\nfunction main() {\r\n\treturn function next() {\r\n\t\treturn {foo: 1};\r\n\t};\r\n}\r\n```\r\nProblem happened because once we reached \"next\" function expression, `findNodeAround(.., \"function\")` returned the same expression causing infinite loop"},"comment":{"url":"https://api.github.com/repos/ternjs/tern/issues/comments/220311450","html_url":"https://github.com/ternjs/tern/pull/778#issuecomment-220311450","issue_url":"https://api.github.com/repos/ternjs/tern/issues/778","id":220311450,"user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T12:36:49Z","updated_at":"2016-05-19T12:36:49Z","body":"Thanks! Merged as 49c2680"}}