{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2362","labels_url":"https://api.github.com/repos/babel/babel/issues/2362/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2362/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2362/events","html_url":"https://github.com/babel/babel/issues/2362","id":106075603,"number":2362,"title":"regenerator buggy when pass falsy this value to async function","user":{"login":"hax","id":159840,"avatar_url":"https://avatars.githubusercontent.com/u/159840?v=3","gravatar_id":"","url":"https://api.github.com/users/hax","html_url":"https://github.com/hax","followers_url":"https://api.github.com/users/hax/followers","following_url":"https://api.github.com/users/hax/following{/other_user}","gists_url":"https://api.github.com/users/hax/gists{/gist_id}","starred_url":"https://api.github.com/users/hax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hax/subscriptions","organizations_url":"https://api.github.com/users/hax/orgs","repos_url":"https://api.github.com/users/hax/repos","events_url":"https://api.github.com/users/hax/events{/privacy}","received_events_url":"https://api.github.com/users/hax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T19:16:25Z","updated_at":"2015-09-11T20:21:49Z","closed_at":null,"body":"```js\r\nfunction test1() {\r\n\tconsole.log(this, typeof this)\r\n}\r\n\r\nasync function test2() {\r\n\tconsole.log(this, typeof this)\r\n}\r\n\r\nconst x = 0\r\nx::test1()\r\nx::test2()\r\n```\r\n\r\nexpect output both `0 'number'`, but got `0 'number'` and `null 'object'`.\r\n\r\nAll falsy values such as empty string will trigger this bug. \r\n\r\n\r\n\r\nasyncToGenerator/bluebirdCoroutines do not have this bug."},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/139653387","html_url":"https://github.com/babel/babel/issues/2362#issuecomment-139653387","issue_url":"https://api.github.com/repos/babel/babel/issues/2362","id":139653387,"user":{"login":"jmm","id":129203,"avatar_url":"https://avatars.githubusercontent.com/u/129203?v=3","gravatar_id":"","url":"https://api.github.com/users/jmm","html_url":"https://github.com/jmm","followers_url":"https://api.github.com/users/jmm/followers","following_url":"https://api.github.com/users/jmm/following{/other_user}","gists_url":"https://api.github.com/users/jmm/gists{/gist_id}","starred_url":"https://api.github.com/users/jmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmm/subscriptions","organizations_url":"https://api.github.com/users/jmm/orgs","repos_url":"https://api.github.com/users/jmm/repos","events_url":"https://api.github.com/users/jmm/events{/privacy}","received_events_url":"https://api.github.com/users/jmm/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T20:21:49Z","updated_at":"2015-09-11T20:21:49Z","body":"@hax Should this be reported on [`regenerator`](https://github.com/facebook/regenerator)?"}}