{"action":"created","issue":{"url":"https://api.github.com/repos/skulpt/skulpt/issues/507","labels_url":"https://api.github.com/repos/skulpt/skulpt/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/skulpt/skulpt/issues/507/comments","events_url":"https://api.github.com/repos/skulpt/skulpt/issues/507/events","html_url":"https://github.com/skulpt/skulpt/pull/507","id":105837396,"number":507,"title":"Support (and trace) exceptions in class definitions","user":{"login":"meredydd","id":126110,"avatar_url":"https://avatars.githubusercontent.com/u/126110?v=3","gravatar_id":"","url":"https://api.github.com/users/meredydd","html_url":"https://github.com/meredydd","followers_url":"https://api.github.com/users/meredydd/followers","following_url":"https://api.github.com/users/meredydd/following{/other_user}","gists_url":"https://api.github.com/users/meredydd/gists{/gist_id}","starred_url":"https://api.github.com/users/meredydd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meredydd/subscriptions","organizations_url":"https://api.github.com/users/meredydd/orgs","repos_url":"https://api.github.com/users/meredydd/repos","events_url":"https://api.github.com/users/meredydd/events{/privacy}","received_events_url":"https://api.github.com/users/meredydd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-10T15:45:05Z","updated_at":"2015-09-22T12:07:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/skulpt/skulpt/pulls/507","html_url":"https://github.com/skulpt/skulpt/pull/507","diff_url":"https://github.com/skulpt/skulpt/pull/507.diff","patch_url":"https://github.com/skulpt/skulpt/pull/507.patch"},"body":"`compile.js` wasn't emitting exception-handling code in class definitions. This meant that when students caused an exception in a class definition, the trace wasn't showing up on the correct line.\r\n\r\nThis change makes that happen correctly (as well as supporting try/catch within a class block, which is pretty perverse, but supported by mainline Python so we might as well)."},"comment":{"url":"https://api.github.com/repos/skulpt/skulpt/issues/comments/142269395","html_url":"https://github.com/skulpt/skulpt/pull/507#issuecomment-142269395","issue_url":"https://api.github.com/repos/skulpt/skulpt/issues/507","id":142269395,"user":{"login":"bnmnetp","id":51115,"avatar_url":"https://avatars.githubusercontent.com/u/51115?v=3","gravatar_id":"","url":"https://api.github.com/users/bnmnetp","html_url":"https://github.com/bnmnetp","followers_url":"https://api.github.com/users/bnmnetp/followers","following_url":"https://api.github.com/users/bnmnetp/following{/other_user}","gists_url":"https://api.github.com/users/bnmnetp/gists{/gist_id}","starred_url":"https://api.github.com/users/bnmnetp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnmnetp/subscriptions","organizations_url":"https://api.github.com/users/bnmnetp/orgs","repos_url":"https://api.github.com/users/bnmnetp/repos","events_url":"https://api.github.com/users/bnmnetp/events{/privacy}","received_events_url":"https://api.github.com/users/bnmnetp/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T12:07:38Z","updated_at":"2015-09-22T12:07:38Z","body":"Yes\n"}}