{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1966","labels_url":"https://api.github.com/repos/babel/babel/issues/1966/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1966/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1966/events","html_url":"https://github.com/babel/babel/issues/1966","id":94262701,"number":1966,"title":"Constructor cannot be called as a function","user":{"login":"jruchaud","id":11873412,"avatar_url":"https://avatars.githubusercontent.com/u/11873412?v=3","gravatar_id":"","url":"https://api.github.com/users/jruchaud","html_url":"https://github.com/jruchaud","followers_url":"https://api.github.com/users/jruchaud/followers","following_url":"https://api.github.com/users/jruchaud/following{/other_user}","gists_url":"https://api.github.com/users/jruchaud/gists{/gist_id}","starred_url":"https://api.github.com/users/jruchaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jruchaud/subscriptions","organizations_url":"https://api.github.com/users/jruchaud/orgs","repos_url":"https://api.github.com/users/jruchaud/repos","events_url":"https://api.github.com/users/jruchaud/events{/privacy}","received_events_url":"https://api.github.com/users/jruchaud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-10T09:32:40Z","updated_at":"2015-07-10T12:46:58Z","closed_at":null,"body":"I wrote this code to extends KeyboardEvent from native API:\r\n```js\r\nclass KeyEvent extends KeyboardEvent {\r\n}\r\n```\r\nI use babel to transpile the code to ES5. But after, during executing the code, I get this error:\r\n```\r\nUncaught TypeError: Failed to construct 'KeyboardEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function.\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/120401598","html_url":"https://github.com/babel/babel/issues/1966#issuecomment-120401598","issue_url":"https://api.github.com/repos/babel/babel/issues/1966","id":120401598,"user":{"login":"jruchaud","id":11873412,"avatar_url":"https://avatars.githubusercontent.com/u/11873412?v=3","gravatar_id":"","url":"https://api.github.com/users/jruchaud","html_url":"https://github.com/jruchaud","followers_url":"https://api.github.com/users/jruchaud/followers","following_url":"https://api.github.com/users/jruchaud/following{/other_user}","gists_url":"https://api.github.com/users/jruchaud/gists{/gist_id}","starred_url":"https://api.github.com/users/jruchaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jruchaud/subscriptions","organizations_url":"https://api.github.com/users/jruchaud/orgs","repos_url":"https://api.github.com/users/jruchaud/repos","events_url":"https://api.github.com/users/jruchaud/events{/privacy}","received_events_url":"https://api.github.com/users/jruchaud/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T12:46:58Z","updated_at":"2015-07-10T12:46:58Z","body":"What's pity."}}