{"action":"created","issue":{"url":"https://api.github.com/repos/marijnh/tern/issues/541","labels_url":"https://api.github.com/repos/marijnh/tern/issues/541/labels{/name}","comments_url":"https://api.github.com/repos/marijnh/tern/issues/541/comments","events_url":"https://api.github.com/repos/marijnh/tern/issues/541/events","html_url":"https://github.com/marijnh/tern/issues/541","id":77736292,"number":541,"title":"RangeError: Maximum call stack size exceeded","user":{"login":"dvalle-nearsoft","id":12420374,"avatar_url":"https://avatars.githubusercontent.com/u/12420374?v=3","gravatar_id":"","url":"https://api.github.com/users/dvalle-nearsoft","html_url":"https://github.com/dvalle-nearsoft","followers_url":"https://api.github.com/users/dvalle-nearsoft/followers","following_url":"https://api.github.com/users/dvalle-nearsoft/following{/other_user}","gists_url":"https://api.github.com/users/dvalle-nearsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/dvalle-nearsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvalle-nearsoft/subscriptions","organizations_url":"https://api.github.com/users/dvalle-nearsoft/orgs","repos_url":"https://api.github.com/users/dvalle-nearsoft/repos","events_url":"https://api.github.com/users/dvalle-nearsoft/events{/privacy}","received_events_url":"https://api.github.com/users/dvalle-nearsoft/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-18T17:26:12Z","updated_at":"2015-06-02T08:32:36Z","closed_at":"2015-06-02T08:32:36Z","body":"# Range Error on Atom - tern and also on sublime text\r\nHello, my tern in atom and sublime text is producing the same error, this happens when i invoke a self made module, ei:\r\n\r\n```\r\nvar LinkedList = require('../src/linkedList').LinkedList;\r\nlist = new LinkedList('hello');\r\n```\r\nwhen it tries to autocomplete on list, the error keeps popping up and it's really annoying\r\n\r\nthanks \r\n\r\n>\r\nRangeError: Maximum call stack size exceeded at extend.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:508:23) at exports.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:26:48) at Object.extend.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:136:42) at exports.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:26:48) at extend.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:515:36) at exports.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:26:48) at Object.extend.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:136:42) at exports.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:26:48) at extend.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:515:36) at exports.toString (/home/dvalle/atom-ternjs/node_modules/tern/lib/infer.js:26:48)"},"comment":{"url":"https://api.github.com/repos/marijnh/tern/issues/comments/107862527","html_url":"https://github.com/marijnh/tern/issues/541#issuecomment-107862527","issue_url":"https://api.github.com/repos/marijnh/tern/issues/541","id":107862527,"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":"2015-06-02T08:32:36Z","updated_at":"2015-06-02T08:32:36Z","body":"Yes, that did help. I was able to reproduce the issue in that test file, though my own file based on the snippet you gave earlier did not trigger it.\r\n\r\nAttached patch fixes it for me, but please test it on your side as well."}}