{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/531","labels_url":"https://api.github.com/repos/6to5/6to5/issues/531/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/531/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/531/events","html_url":"https://github.com/6to5/6to5/issues/531","id":54711352,"number":531,"title":"Can't use version higher than 2.0.4","user":{"login":"terrybleger","id":1183209,"avatar_url":"https://avatars.githubusercontent.com/u/1183209?v=3","gravatar_id":"","url":"https://api.github.com/users/terrybleger","html_url":"https://github.com/terrybleger","followers_url":"https://api.github.com/users/terrybleger/followers","following_url":"https://api.github.com/users/terrybleger/following{/other_user}","gists_url":"https://api.github.com/users/terrybleger/gists{/gist_id}","starred_url":"https://api.github.com/users/terrybleger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrybleger/subscriptions","organizations_url":"https://api.github.com/users/terrybleger/orgs","repos_url":"https://api.github.com/users/terrybleger/repos","events_url":"https://api.github.com/users/terrybleger/events{/privacy}","received_events_url":"https://api.github.com/users/terrybleger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-18T21:44:05Z","updated_at":"2015-01-19T02:34:31Z","closed_at":null,"body":"Hi,\r\n\r\nI'm just wondering,\r\n\r\nI'm running 6to5 using this kind of script:\r\n\r\n```\r\n#!/usr/bin/env sh\r\n\r\nexec /usr/local/bin/n as 0.11.14 --harmony /usr/local/bin/6to5-node --playground \"$@\"\r\n```\r\nso that I can use it for Phusion Passenger + Nginx.\r\n\r\nNow, this simple codes always throws ``` TypeError: undefined is not a function ```\r\n```\r\n\"use strict\";\r\n\r\nlet list = [1, 2, 3, 4, 5];\r\n\r\nfor (let item of list.values()) {\r\n                              ^\r\n}\r\n```\r\n\r\nThe highest version that I'm able to use it without \"any errors for unknown reason\" is 2.0.4.\r\nkexec 0.2.0 is always failed to compile. And even if I'm using kexec 1.0.0 which compiled without any error, it didn't make the \"unknown reason error\" disappear anyway.\r\n\r\nAlso the latest version 2.13.1 can even worse (which I don't know the reason why),\r\n``` Temporal dead zone - accessing a variable before it's initialized ```\r\n```\r\nfor (let item of list.values()) {\r\n  let workspace = workspaces[item.name];\r\n                            ^\r\n}\r\n```\r\n\r\nI dont't seem to find people that have the same issue like mine, so please tell me where did I go wrong?\r\n```\r\nNode version: 0.11.14\r\nNode version manager: n\r\n6to5 versions: 2.0.4 (fine), 2.1.0 to 2.13.1 (bad)\r\nOS: Mac OS X 10.10.1\r\n```\r\n\r\nOOT:\r\nAnyway for whatever reason or version I'm using it, \"Iterators + For..Of\"\r\n```\r\n// WORKING\r\nfor (let item of list.values()) {\r\n  console.log(item);\r\n}\r\n\r\n// NOT WORKING, but using Traceur this code is fine\r\nfor (let item of list) {\r\n  console.log(item);\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/6to5/6to5/issues/comments/70439700","html_url":"https://github.com/6to5/6to5/issues/531#issuecomment-70439700","issue_url":"https://api.github.com/repos/6to5/6to5/issues/531","id":70439700,"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-01-19T02:34:31Z","updated_at":"2015-01-19T02:34:31Z","body":"You're using 0.11.14 which is an unstable version. A lot of ES6 features are broken on it and it's not very spec compliant so it's best to just use a stable release. The error you're getting is a v8 one so it's not related to 6to5."}}