{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/3739","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/3739/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/3739/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/3739/events","html_url":"https://github.com/nodejs/node/issues/3739","id":116147801,"number":3739,"title":"[Buffer + ES6] Lose the child's class method when extending Buffer in ES6 class style","user":{"login":"hashedhyphen","id":13907611,"avatar_url":"https://avatars.githubusercontent.com/u/13907611?v=3","gravatar_id":"","url":"https://api.github.com/users/hashedhyphen","html_url":"https://github.com/hashedhyphen","followers_url":"https://api.github.com/users/hashedhyphen/followers","following_url":"https://api.github.com/users/hashedhyphen/following{/other_user}","gists_url":"https://api.github.com/users/hashedhyphen/gists{/gist_id}","starred_url":"https://api.github.com/users/hashedhyphen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashedhyphen/subscriptions","organizations_url":"https://api.github.com/users/hashedhyphen/orgs","repos_url":"https://api.github.com/users/hashedhyphen/repos","events_url":"https://api.github.com/users/hashedhyphen/events{/privacy}","received_events_url":"https://api.github.com/users/hashedhyphen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/buffer","name":"buffer","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":{"login":"trevnorris","id":289174,"avatar_url":"https://avatars.githubusercontent.com/u/289174?v=3","gravatar_id":"","url":"https://api.github.com/users/trevnorris","html_url":"https://github.com/trevnorris","followers_url":"https://api.github.com/users/trevnorris/followers","following_url":"https://api.github.com/users/trevnorris/following{/other_user}","gists_url":"https://api.github.com/users/trevnorris/gists{/gist_id}","starred_url":"https://api.github.com/users/trevnorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevnorris/subscriptions","organizations_url":"https://api.github.com/users/trevnorris/orgs","repos_url":"https://api.github.com/users/trevnorris/repos","events_url":"https://api.github.com/users/trevnorris/events{/privacy}","received_events_url":"https://api.github.com/users/trevnorris/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-11-10T16:44:17Z","updated_at":"2016-03-22T19:00:55Z","closed_at":"2016-03-22T19:00:55Z","body":"This issue is related to #2882 .\r\n\r\nI'm now using a nightly version.\r\n\r\n```\r\n>node -v\r\nv5.0.1-nightly201510294e54dbec51\r\n```\r\n\r\nAs @trevnorris commented [on 25 Sep](https://github.com/nodejs/node/issues/2882#issuecomment-143010562), a following code doesn't work well now.\r\n\r\n```javascript\r\n'use strict';\r\n\r\nclass Child extends Buffer {\r\n  constructor(n) {\r\n    super(n);\r\n  }\r\n\r\n  foo() {\r\n    console.log('gotcha!');\r\n  }\r\n}\r\n\r\nlet child = new Child(4);\r\nchild.foo();  //=> TypeError: child.foo is not a function\r\n```\r\n\r\nI'm not sure how difficult is this problem to fix, but I would be happy if the above code works...\r\n\r\nThanks! :)\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/199964165","html_url":"https://github.com/nodejs/node/issues/3739#issuecomment-199964165","issue_url":"https://api.github.com/repos/nodejs/node/issues/3739","id":199964165,"user":{"login":"jasnell","id":439929,"avatar_url":"https://avatars.githubusercontent.com/u/439929?v=3","gravatar_id":"","url":"https://api.github.com/users/jasnell","html_url":"https://github.com/jasnell","followers_url":"https://api.github.com/users/jasnell/followers","following_url":"https://api.github.com/users/jasnell/following{/other_user}","gists_url":"https://api.github.com/users/jasnell/gists{/gist_id}","starred_url":"https://api.github.com/users/jasnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasnell/subscriptions","organizations_url":"https://api.github.com/users/jasnell/orgs","repos_url":"https://api.github.com/users/jasnell/repos","events_url":"https://api.github.com/users/jasnell/events{/privacy}","received_events_url":"https://api.github.com/users/jasnell/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T19:00:54Z","updated_at":"2016-03-22T19:00:54Z","body":"Assuming there's no further reason to keep this one open. Closing!"}}