{"action":"created","issue":{"url":"https://api.github.com/repos/richgilbank/Scratch-JS/issues/53","labels_url":"https://api.github.com/repos/richgilbank/Scratch-JS/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/richgilbank/Scratch-JS/issues/53/comments","events_url":"https://api.github.com/repos/richgilbank/Scratch-JS/issues/53/events","html_url":"https://github.com/richgilbank/Scratch-JS/issues/53","id":90241254,"number":53,"title":"Upgrade babel","user":{"login":"rocketraman","id":53049,"avatar_url":"https://avatars.githubusercontent.com/u/53049?v=3","gravatar_id":"","url":"https://api.github.com/users/rocketraman","html_url":"https://github.com/rocketraman","followers_url":"https://api.github.com/users/rocketraman/followers","following_url":"https://api.github.com/users/rocketraman/following{/other_user}","gists_url":"https://api.github.com/users/rocketraman/gists{/gist_id}","starred_url":"https://api.github.com/users/rocketraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocketraman/subscriptions","organizations_url":"https://api.github.com/users/rocketraman/orgs","repos_url":"https://api.github.com/users/rocketraman/repos","events_url":"https://api.github.com/users/rocketraman/events{/privacy}","received_events_url":"https://api.github.com/users/rocketraman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-22T23:25:07Z","updated_at":"2015-06-22T23:59:40Z","closed_at":null,"body":"The version of babel distributed in the extension is out of date. For example, the following simple code does not work:\r\n\r\n```javascript\r\nlet baz = \"123\"\r\nlet foo = s => s + this.baz\r\nconsole.log(foo('abc'))\r\n```\r\n\r\nresults in:\r\n\r\n```javascript\r\n\"use strict\";\r\n\r\nvar baz = \"123\";\r\nvar foo = function (s) {\r\n  return s + undefined.baz;\r\n};\r\nconsole.log(foo(\"abc\"));\r\n```\r\n\r\nRecent versions of babel correctly assign the `this` reference to the enclosing scope."},"comment":{"url":"https://api.github.com/repos/richgilbank/Scratch-JS/issues/comments/114307967","html_url":"https://github.com/richgilbank/Scratch-JS/issues/53#issuecomment-114307967","issue_url":"https://api.github.com/repos/richgilbank/Scratch-JS/issues/53","id":114307967,"user":{"login":"sebmck","id":853712,"avatar_url":"https://avatars.githubusercontent.com/u/853712?v=3","gravatar_id":"","url":"https://api.github.com/users/sebmck","html_url":"https://github.com/sebmck","followers_url":"https://api.github.com/users/sebmck/followers","following_url":"https://api.github.com/users/sebmck/following{/other_user}","gists_url":"https://api.github.com/users/sebmck/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmck/subscriptions","organizations_url":"https://api.github.com/users/sebmck/orgs","repos_url":"https://api.github.com/users/sebmck/repos","events_url":"https://api.github.com/users/sebmck/events{/privacy}","received_events_url":"https://api.github.com/users/sebmck/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T23:59:40Z","updated_at":"2015-06-22T23:59:40Z","body":"No they don't, same behaviour in latest. This is not a bug. See the [FAQ](http://babeljs.io/docs/faq/#why-is-this-being-remapped-to-undefined-)."}}