{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/95","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/95/comments","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/95/events","html_url":"https://github.com/Microsoft/ChakraCore/issues/95","id":126567556,"number":95,"title":"A simple javascript factorial function does not produce expected results","user":{"login":"mcfi","id":6384579,"avatar_url":"https://avatars.githubusercontent.com/u/6384579?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfi","html_url":"https://github.com/mcfi","followers_url":"https://api.github.com/users/mcfi/followers","following_url":"https://api.github.com/users/mcfi/following{/other_user}","gists_url":"https://api.github.com/users/mcfi/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfi/subscriptions","organizations_url":"https://api.github.com/users/mcfi/orgs","repos_url":"https://api.github.com/users/mcfi/repos","events_url":"https://api.github.com/users/mcfi/events{/privacy}","received_events_url":"https://api.github.com/users/mcfi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/ChakraCore/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/Microsoft/ChakraCore/labels/Duplicate","name":"Duplicate","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-14T03:02:22Z","updated_at":"2016-01-14T03:20:24Z","closed_at":"2016-01-14T03:16:14Z","body":"I tried the x64-debug ch.exe to execute the following javascript code, but nothing was output. The expected output should be \"Infinity\".\r\n\r\n```javascript\r\nfunction fact(n) {\r\n  if (n < 2)\r\n  {\r\n    return 1;\r\n  }\r\n  else\r\n  {\r\n    return n * fact(n-1);\r\n  }\r\n}\r\nprint(fact(1000));\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/comments/171518135","html_url":"https://github.com/Microsoft/ChakraCore/issues/95#issuecomment-171518135","issue_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/95","id":171518135,"user":{"login":"mcfi","id":6384579,"avatar_url":"https://avatars.githubusercontent.com/u/6384579?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfi","html_url":"https://github.com/mcfi","followers_url":"https://api.github.com/users/mcfi/followers","following_url":"https://api.github.com/users/mcfi/following{/other_user}","gists_url":"https://api.github.com/users/mcfi/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfi/subscriptions","organizations_url":"https://api.github.com/users/mcfi/orgs","repos_url":"https://api.github.com/users/mcfi/repos","events_url":"https://api.github.com/users/mcfi/events{/privacy}","received_events_url":"https://api.github.com/users/mcfi/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T03:20:24Z","updated_at":"2016-01-14T03:20:24Z","body":"Just curious, if the Chakra could do tail-recursion optimization at an earlier stage, could we avoid the some stack overflow issues such as the simple factorial function?"}}