{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/1181","repository_url":"https://api.github.com/repos/systemjs/systemjs","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/1181/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/1181/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/1181/events","html_url":"https://github.com/systemjs/systemjs/issues/1181","id":143528143,"number":1181,"title":"Loading broken JS fails without stack trace with defer","user":{"login":"alexisvincent","id":1898669,"avatar_url":"https://avatars.githubusercontent.com/u/1898669?v=3","gravatar_id":"","url":"https://api.github.com/users/alexisvincent","html_url":"https://github.com/alexisvincent","followers_url":"https://api.github.com/users/alexisvincent/followers","following_url":"https://api.github.com/users/alexisvincent/following{/other_user}","gists_url":"https://api.github.com/users/alexisvincent/gists{/gist_id}","starred_url":"https://api.github.com/users/alexisvincent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexisvincent/subscriptions","organizations_url":"https://api.github.com/users/alexisvincent/orgs","repos_url":"https://api.github.com/users/alexisvincent/repos","events_url":"https://api.github.com/users/alexisvincent/events{/privacy}","received_events_url":"https://api.github.com/users/alexisvincent/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-25T15:49:04Z","updated_at":"2016-03-25T23:12:43Z","closed_at":"2016-03-25T23:12:43Z","body":"When loading a js file with some error. Stack trace is not shown in the case where defer's were used to load SystemJS. This could just be because I don't properly understand how defers work. But really seems like it should.\r\n\r\nThere's a repo to replicate here: https://github.com/alexisvincent/system-ja-stack-trace-error\r\n"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/201575390","html_url":"https://github.com/systemjs/systemjs/issues/1181#issuecomment-201575390","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/1181","id":201575390,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T23:12:43Z","updated_at":"2016-03-25T23:12:43Z","body":"Yes, promises need a catch handler to get the error depending on the js environment. I'd suggest going through a promises tutorial here if you can."}}