{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5672","repository_url":"https://api.github.com/repos/Microsoft/ChakraCore","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5672/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5672/comments","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5672/events","html_url":"https://github.com/Microsoft/ChakraCore/issues/5672","id":358014184,"node_id":"MDU6SXNzdWUzNTgwMTQxODQ=","number":5672,"title":"ES6 class name not set when defined in window object","user":{"login":"lbuchs","id":37619779,"node_id":"MDQ6VXNlcjM3NjE5Nzc5","avatar_url":"https://avatars3.githubusercontent.com/u/37619779?v=4","gravatar_id":"","url":"https://api.github.com/users/lbuchs","html_url":"https://github.com/lbuchs","followers_url":"https://api.github.com/users/lbuchs/followers","following_url":"https://api.github.com/users/lbuchs/following{/other_user}","gists_url":"https://api.github.com/users/lbuchs/gists{/gist_id}","starred_url":"https://api.github.com/users/lbuchs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbuchs/subscriptions","organizations_url":"https://api.github.com/users/lbuchs/orgs","repos_url":"https://api.github.com/users/lbuchs/repos","events_url":"https://api.github.com/users/lbuchs/events{/privacy}","received_events_url":"https://api.github.com/users/lbuchs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-07T10:36:24Z","updated_at":"2018-09-07T14:56:17Z","closed_at":"2018-09-07T14:56:17Z","author_association":"NONE","body":"When defining a class with ES6, if you define the class in the window object, the class name is not set:\r\n\r\n```\r\n    <script>\r\n        test1 = class Foo {};\r\n        window.test2 = class Bar {};\r\n        \r\n        console.log(window.test1.name);\r\n        console.log(window.test2.name);   \r\n    </script>\r\n```\r\n\r\nExpected output:\r\n```\r\nFoo\r\nBar\r\n```\r\n\r\nActual output:\r\n```\r\nFoo\r\n\r\n```\r\n\r\nTested in Microsoft Edge 42.17134.1.0 / EdgeHTML 17.17134"}}
{"actor":{"display_login":"sethbrenith"}}