{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/8203","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/8203/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/8203/comments","events_url":"https://api.github.com/repos/babel/babel/issues/8203/events","html_url":"https://github.com/babel/babel/issues/8203","id":333797003,"node_id":"MDU6SXNzdWUzMzM3OTcwMDM=","number":8203,"title":"\"this\" on methods = 'undefined' using on node js","user":{"login":"CaothicPechan","id":31423331,"node_id":"MDQ6VXNlcjMxNDIzMzMx","avatar_url":"https://avatars0.githubusercontent.com/u/31423331?v=4","gravatar_id":"","url":"https://api.github.com/users/CaothicPechan","html_url":"https://github.com/CaothicPechan","followers_url":"https://api.github.com/users/CaothicPechan/followers","following_url":"https://api.github.com/users/CaothicPechan/following{/other_user}","gists_url":"https://api.github.com/users/CaothicPechan/gists{/gist_id}","starred_url":"https://api.github.com/users/CaothicPechan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaothicPechan/subscriptions","organizations_url":"https://api.github.com/users/CaothicPechan/orgs","repos_url":"https://api.github.com/users/CaothicPechan/repos","events_url":"https://api.github.com/users/CaothicPechan/events{/privacy}","received_events_url":"https://api.github.com/users/CaothicPechan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-19T18:56:24Z","updated_at":"2018-06-19T18:56:26Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nThanks for filing an issue 😄 ! Before you submit, please read the following:\r\n\r\nCheck the other issue templates if you are trying to submit a bug report, feature request, or question\r\nSearch open/closed issues before submitting since someone might have asked the same thing before!\r\n-->\r\n\r\nHi, i'm trying to set up babel for using es6, on my node js problem, the issue is when i'm trying to use properties of a class on my methods it said that is undefined.\r\n\r\nHere is my project -> https://github.com/CaothicPechan/chatbot-provider.git\r\n\r\nWhen i'm instancing the class i can access to the properties on the constructor, but on methods i can not acces..\r\n\r\nlet fbService = new fbProvider(constants.fb.graphMsgURL, constants.fb.pageToken, constants.fb.appSecret);\r\n\r\nFile is providers/facebook/fbProvider.js\r\n\r\nverifyRequestSignature(req, res, buf){\r\n        var signature = req.headers[\"x-hub-signature\"];\r\n        console.log('verifyRequestSignature');\r\n        console.log(this); --->>  this == undefined.\r\n        if (!signature) {\r\n            throw new Error('Couldn\\'t validate the signature.');\r\n        } else {\r\n            var elements = signature.split('=');\r\n            var method = elements[0];\r\n            var signatureHash = elements[1];\r\n\r\n            var expectedHash = crypto.createHmac('sha1', this.constants.appSecret)\r\n                .update(buf)\r\n                .digest('hex');\r\n\r\n            if (signatureHash != expectedHash) {\r\n                throw new Error(\"Couldn't validate the request signature.\");\r\n                console.log(\"Couldn't validate the request signature.\");\r\n            }\r\n        }\r\n    }\r\n\r\n\r\nDo you know how can i solve it?\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/398507822","html_url":"https://github.com/babel/babel/issues/8203#issuecomment-398507822","issue_url":"https://api.github.com/repos/babel/babel/issues/8203","id":398507822,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODUwNzgyMg==","user":{"login":"babel-bot","id":21250019,"node_id":"MDQ6VXNlcjIxMjUwMDE5","avatar_url":"https://avatars1.githubusercontent.com/u/21250019?v=4","gravatar_id":"","url":"https://api.github.com/users/babel-bot","html_url":"https://github.com/babel-bot","followers_url":"https://api.github.com/users/babel-bot/followers","following_url":"https://api.github.com/users/babel-bot/following{/other_user}","gists_url":"https://api.github.com/users/babel-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/babel-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel-bot/subscriptions","organizations_url":"https://api.github.com/users/babel-bot/orgs","repos_url":"https://api.github.com/users/babel-bot/repos","events_url":"https://api.github.com/users/babel-bot/events{/privacy}","received_events_url":"https://api.github.com/users/babel-bot/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T18:56:26Z","updated_at":"2018-06-19T18:56:26Z","author_association":"COLLABORATOR","body":"Hey @CaothicPechan! We really appreciate you taking the time to report an issue. The collaborators\non this project attempt to help as many people as possible, but we're a limited number of volunteers,\nso it's possible this won't be addressed swiftly.\n\nIf you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack\ncommunity that typically always has someone willing to help. You can sign-up [here](https://slack.babeljs.io/)\nfor an invite."}}
{"actor":{"display_login":"babel-bot"}}