{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/1749","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/1749/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1749/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/1749/events","html_url":"https://github.com/mochajs/mocha/pull/1749","id":88597331,"number":1749,"title":"Maximum call stack issue for large test suite","user":{"login":"tinganho","id":1324476,"avatar_url":"https://avatars.githubusercontent.com/u/1324476?v=3","gravatar_id":"","url":"https://api.github.com/users/tinganho","html_url":"https://github.com/tinganho","followers_url":"https://api.github.com/users/tinganho/followers","following_url":"https://api.github.com/users/tinganho/following{/other_user}","gists_url":"https://api.github.com/users/tinganho/gists{/gist_id}","starred_url":"https://api.github.com/users/tinganho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinganho/subscriptions","organizations_url":"https://api.github.com/users/tinganho/orgs","repos_url":"https://api.github.com/users/tinganho/repos","events_url":"https://api.github.com/users/tinganho/events{/privacy}","received_events_url":"https://api.github.com/users/tinganho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-16T02:51:07Z","updated_at":"2015-06-18T14:42:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mochajs/mocha/pulls/1749","html_url":"https://github.com/mochajs/mocha/pull/1749","diff_url":"https://github.com/mochajs/mocha/pull/1749.diff","patch_url":"https://github.com/mochajs/mocha/pull/1749.patch"},"body":"The TypeScript repo is running into some scalability issues with Mocha. We pinned down the problem in this line of code https://github.com/mochajs/mocha/blob/master/lib/runner.js#L541. It does a huge recursive loop if there are is a large amount of test suites and thus causing a maximum call stack error. \r\n\r\nThis PR fixes that problem.\r\n\r\nRelated issue in TypeScript repo:\r\nhttps://github.com/Microsoft/TypeScript/pull/3511"},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/113179253","html_url":"https://github.com/mochajs/mocha/pull/1749#issuecomment-113179253","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/1749","id":113179253,"user":{"login":"tinganho","id":1324476,"avatar_url":"https://avatars.githubusercontent.com/u/1324476?v=3","gravatar_id":"","url":"https://api.github.com/users/tinganho","html_url":"https://github.com/tinganho","followers_url":"https://api.github.com/users/tinganho/followers","following_url":"https://api.github.com/users/tinganho/following{/other_user}","gists_url":"https://api.github.com/users/tinganho/gists{/gist_id}","starred_url":"https://api.github.com/users/tinganho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinganho/subscriptions","organizations_url":"https://api.github.com/users/tinganho/orgs","repos_url":"https://api.github.com/users/tinganho/repos","events_url":"https://api.github.com/users/tinganho/events{/privacy}","received_events_url":"https://api.github.com/users/tinganho/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T14:42:58Z","updated_at":"2015-06-18T14:42:58Z","body":"@boneskull I just fixed the next call argument."}}