{"action":"created","issue":{"url":"https://api.github.com/repos/rubys/ruby2js/issues/36","repository_url":"https://api.github.com/repos/rubys/ruby2js","labels_url":"https://api.github.com/repos/rubys/ruby2js/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/rubys/ruby2js/issues/36/comments","events_url":"https://api.github.com/repos/rubys/ruby2js/issues/36/events","html_url":"https://github.com/rubys/ruby2js/issues/36","id":361405159,"node_id":"MDU6SXNzdWUzNjE0MDUxNTk=","number":36,"title":"code generated by `include` not working","user":{"login":"djshitcoin","id":51177,"node_id":"MDQ6VXNlcjUxMTc3","avatar_url":"https://avatars3.githubusercontent.com/u/51177?v=4","gravatar_id":"","url":"https://api.github.com/users/djshitcoin","html_url":"https://github.com/djshitcoin","followers_url":"https://api.github.com/users/djshitcoin/followers","following_url":"https://api.github.com/users/djshitcoin/following{/other_user}","gists_url":"https://api.github.com/users/djshitcoin/gists{/gist_id}","starred_url":"https://api.github.com/users/djshitcoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djshitcoin/subscriptions","organizations_url":"https://api.github.com/users/djshitcoin/orgs","repos_url":"https://api.github.com/users/djshitcoin/repos","events_url":"https://api.github.com/users/djshitcoin/events{/privacy}","received_events_url":"https://api.github.com/users/djshitcoin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-18T17:23:49Z","updated_at":"2018-09-18T20:57:47Z","closed_at":"2018-09-18T20:55:34Z","author_association":"NONE","body":"```ruby\r\nclass Entity\r\n  include Stats\r\nend\r\n```\r\ngenerates\r\n```js\r\nfunction Entity() {};\r\n\r\n(function() {\r\n  for (var $_ in Stats) {\r\n    Entity.prototype()[$_] = Stats[$_]\r\n  }\r\n})()\r\n```\r\nwhich results in `Uncaught TypeError: Entity.prototype is not a function`. I think the parentheses after `prototype` are wrong."},"comment":{"url":"https://api.github.com/repos/rubys/ruby2js/issues/comments/422552023","html_url":"https://github.com/rubys/ruby2js/issues/36#issuecomment-422552023","issue_url":"https://api.github.com/repos/rubys/ruby2js/issues/36","id":422552023,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjU1MjAyMw==","user":{"login":"rubys","id":4815,"node_id":"MDQ6VXNlcjQ4MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/4815?v=4","gravatar_id":"","url":"https://api.github.com/users/rubys","html_url":"https://github.com/rubys","followers_url":"https://api.github.com/users/rubys/followers","following_url":"https://api.github.com/users/rubys/following{/other_user}","gists_url":"https://api.github.com/users/rubys/gists{/gist_id}","starred_url":"https://api.github.com/users/rubys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubys/subscriptions","organizations_url":"https://api.github.com/users/rubys/orgs","repos_url":"https://api.github.com/users/rubys/repos","events_url":"https://api.github.com/users/rubys/events{/privacy}","received_events_url":"https://api.github.com/users/rubys/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T20:57:47Z","updated_at":"2018-09-18T20:57:47Z","author_association":"OWNER","body":"I've pushed a fix.  FYI, if you enable `es2015` or higher, you will see the following instead:\r\n\r\n```javascript\r\nclass Entity {};\r\nObject.assign(Entity.prototype, Stats)\r\n```"}}
{"actor":{"display_login":"rubys"}}