{"action":"created","issue":{"url":"https://api.github.com/repos/evanw/node-source-map-support/issues/131","repository_url":"https://api.github.com/repos/evanw/node-source-map-support","labels_url":"https://api.github.com/repos/evanw/node-source-map-support/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/evanw/node-source-map-support/issues/131/comments","events_url":"https://api.github.com/repos/evanw/node-source-map-support/issues/131/events","html_url":"https://github.com/evanw/node-source-map-support/issues/131","id":146147487,"number":131,"title":"Crash while generating stack trace","user":{"login":"digeff","id":14098140,"avatar_url":"https://avatars.githubusercontent.com/u/14098140?v=3","gravatar_id":"","url":"https://api.github.com/users/digeff","html_url":"https://github.com/digeff","followers_url":"https://api.github.com/users/digeff/followers","following_url":"https://api.github.com/users/digeff/following{/other_user}","gists_url":"https://api.github.com/users/digeff/gists{/gist_id}","starred_url":"https://api.github.com/users/digeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digeff/subscriptions","organizations_url":"https://api.github.com/users/digeff/orgs","repos_url":"https://api.github.com/users/digeff/repos","events_url":"https://api.github.com/users/digeff/events{/privacy}","received_events_url":"https://api.github.com/users/digeff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-04-06T00:20:21Z","updated_at":"2016-04-06T15:35:38Z","closed_at":null,"body":"While trying to translate a stack trace my project hits this case:\r\n\r\n    // Fix position in Node where some (internal) code is prepended.\r\n    // See https://github.com/evanw/node-source-map-support/issues/36\r\n    if (line === 1 && !isInBrowser() && !frame.isEval()) {\r\n      column -= 62;\r\n    }\r\n\r\nWhich doesn't apply to my code, because it doesn't has the header mentioned in that issue... It just has code on the first line, but it has less than 62 columns so it crashes later when the column is negative.\r\n\r\nApart from that, if translating the stack trace to typescript fails I think you should just print the original javascript stacktrace, not throw an error."},"comment":{"url":"https://api.github.com/repos/evanw/node-source-map-support/issues/comments/206432819","html_url":"https://github.com/evanw/node-source-map-support/issues/131#issuecomment-206432819","issue_url":"https://api.github.com/repos/evanw/node-source-map-support/issues/131","id":206432819,"user":{"login":"digeff","id":14098140,"avatar_url":"https://avatars.githubusercontent.com/u/14098140?v=3","gravatar_id":"","url":"https://api.github.com/users/digeff","html_url":"https://github.com/digeff","followers_url":"https://api.github.com/users/digeff/followers","following_url":"https://api.github.com/users/digeff/following{/other_user}","gists_url":"https://api.github.com/users/digeff/gists{/gist_id}","starred_url":"https://api.github.com/users/digeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digeff/subscriptions","organizations_url":"https://api.github.com/users/digeff/orgs","repos_url":"https://api.github.com/users/digeff/repos","events_url":"https://api.github.com/users/digeff/events{/privacy}","received_events_url":"https://api.github.com/users/digeff/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T15:35:38Z","updated_at":"2016-04-06T15:35:38Z","body":"ok, what about updating the code to if (column >= 63) { column -= 62 } // at least?"}}