{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/1874","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/1874/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/1874/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/1874/events","html_url":"https://github.com/scala-js/scala-js/pull/1874","id":102896888,"number":1874,"title":"Fix #1840: Give a meaningful `name` property to emitted classes.","user":{"login":"sjrd","id":535934,"avatar_url":"https://avatars.githubusercontent.com/u/535934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjrd","html_url":"https://github.com/sjrd","followers_url":"https://api.github.com/users/sjrd/followers","following_url":"https://api.github.com/users/sjrd/following{/other_user}","gists_url":"https://api.github.com/users/sjrd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjrd/subscriptions","organizations_url":"https://api.github.com/users/sjrd/orgs","repos_url":"https://api.github.com/users/sjrd/repos","events_url":"https://api.github.com/users/sjrd/events{/privacy}","received_events_url":"https://api.github.com/users/sjrd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nicolasstucki","id":3648029,"avatar_url":"https://avatars.githubusercontent.com/u/3648029?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasstucki","html_url":"https://github.com/nicolasstucki","followers_url":"https://api.github.com/users/nicolasstucki/followers","following_url":"https://api.github.com/users/nicolasstucki/following{/other_user}","gists_url":"https://api.github.com/users/nicolasstucki/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasstucki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasstucki/subscriptions","organizations_url":"https://api.github.com/users/nicolasstucki/orgs","repos_url":"https://api.github.com/users/nicolasstucki/repos","events_url":"https://api.github.com/users/nicolasstucki/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasstucki/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-08-24T21:37:33Z","updated_at":"2015-08-25T14:07:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scala-js/scala-js/pulls/1874","html_url":"https://github.com/scala-js/scala-js/pull/1874","diff_url":"https://github.com/scala-js/scala-js/pull/1874.diff","patch_url":"https://github.com/scala-js/scala-js/pull/1874.patch"},"body":"Instead of emitting\r\n  `var $c_pack_Foo = function() { ... };`\r\nwe now emit\r\n  `function $c_pack_Foo() { ... }`\r\n\r\nNot only is this shorter, but most importantly it gives a meaningful `name` property to the function. Some debugging facilities, including those built in some frameworks, leverage this property.\r\n\r\nObviously, the name is only meaningful in fastOpt mode. In fullOpt, the names are shortened anyway."},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/134596971","html_url":"https://github.com/scala-js/scala-js/pull/1874#issuecomment-134596971","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/1874","id":134596971,"user":{"login":"sjrd","id":535934,"avatar_url":"https://avatars.githubusercontent.com/u/535934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjrd","html_url":"https://github.com/sjrd","followers_url":"https://api.github.com/users/sjrd/followers","following_url":"https://api.github.com/users/sjrd/following{/other_user}","gists_url":"https://api.github.com/users/sjrd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjrd/subscriptions","organizations_url":"https://api.github.com/users/sjrd/orgs","repos_url":"https://api.github.com/users/sjrd/repos","events_url":"https://api.github.com/users/sjrd/events{/privacy}","received_events_url":"https://api.github.com/users/sjrd/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T14:07:01Z","updated_at":"2015-08-25T14:07:01Z","body":"retest this please"}}