{"action":"opened","issue":{"url":"https://api.github.com/repos/jasmine/jasmine-npm/issues/82","repository_url":"https://api.github.com/repos/jasmine/jasmine-npm","labels_url":"https://api.github.com/repos/jasmine/jasmine-npm/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/jasmine/jasmine-npm/issues/82/comments","events_url":"https://api.github.com/repos/jasmine/jasmine-npm/issues/82/events","html_url":"https://github.com/jasmine/jasmine-npm/issues/82","id":167810737,"number":82,"title":"The default console reporter hangs there if it encounters an error with stack == undefined","user":{"login":"ybian","id":10651,"avatar_url":"https://avatars.githubusercontent.com/u/10651?v=3","gravatar_id":"","url":"https://api.github.com/users/ybian","html_url":"https://github.com/ybian","followers_url":"https://api.github.com/users/ybian/followers","following_url":"https://api.github.com/users/ybian/following{/other_user}","gists_url":"https://api.github.com/users/ybian/gists{/gist_id}","starred_url":"https://api.github.com/users/ybian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybian/subscriptions","organizations_url":"https://api.github.com/users/ybian/orgs","repos_url":"https://api.github.com/users/ybian/repos","events_url":"https://api.github.com/users/ybian/events{/privacy}","received_events_url":"https://api.github.com/users/ybian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T09:31:12Z","updated_at":"2016-07-27T09:31:12Z","closed_at":null,"body":"In some of my cases, there are errors thrown with no `stack` field. It would cause the following code in `lib/reporters/console_reporter.js` to just hang after printing \"Stack\". Output of other failed cases are also blocked.\r\n\r\n```\r\n  function defaultStackFilter(stack) {\r\n    var filteredStack = stack.split('\\n').filter(function(stackLine) {\r\n      return stackLine.indexOf(jasmineCorePath) === -1;\r\n    }).join('\\n');\r\n    return filteredStack;\r\n  }\r\n```\r\n\r\nAdding a check beforehand and returning an empty string in that case fixes the problem."}}
{"actor":{"display_login":"ybian"}}