{"action":"created","issue":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4676","repository_url":"https://api.github.com/repos/jashkenas/coffeescript","labels_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4676/labels{/name}","comments_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4676/comments","events_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4676/events","html_url":"https://github.com/jashkenas/coffeescript/issues/4676","id":254410674,"number":4676,"title":"[CS2] unexpected token (CLI)","user":{"login":"coderofsalvation","id":180068,"avatar_url":"https://avatars1.githubusercontent.com/u/180068?v=4","gravatar_id":"","url":"https://api.github.com/users/coderofsalvation","html_url":"https://github.com/coderofsalvation","followers_url":"https://api.github.com/users/coderofsalvation/followers","following_url":"https://api.github.com/users/coderofsalvation/following{/other_user}","gists_url":"https://api.github.com/users/coderofsalvation/gists{/gist_id}","starred_url":"https://api.github.com/users/coderofsalvation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderofsalvation/subscriptions","organizations_url":"https://api.github.com/users/coderofsalvation/orgs","repos_url":"https://api.github.com/users/coderofsalvation/repos","events_url":"https://api.github.com/users/coderofsalvation/events{/privacy}","received_events_url":"https://api.github.com/users/coderofsalvation/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T17:28:35Z","updated_at":"2017-08-31T20:02:44Z","closed_at":null,"author_association":"NONE","body":"```\r\n[sqz@localhost~/Downloads]  $ npm install coffeescript@next -g\r\n/home/sqz/opt/nvm/versions/node/v6.9.1/bin/coffee -> /home/sqz/opt/nvm/versions/node/v6.9.1/lib/node_modules/coffeescript/bin/coffee\r\n/home/sqz/opt/nvm/versions/node/v6.9.1/bin/cake -> /home/sqz/opt/nvm/versions/node/v6.9.1/lib/node_modules/coffeescript/bin/cake\r\n/home/sqz/opt/nvm/versions/node/v6.9.1/lib\r\n└── coffeescript@2.0.0-beta4 \r\n\r\n[sqz@localhost~/Downloads]  $ coffee\r\n/home/sqz/opt/nvm/versions/node/v6.9.1/lib/node_modules/coffeescript/lib/coffeescript/repl.js:29\r\n    eval: async function(input, context, filename, cb) {\r\n                ^^^^^^^^\r\nSyntaxError: Unexpected token function\r\n    at Object.exports.runInThisContext (vm.js:76:16)\r\n    at Module._compile (module.js:542:28)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n    at Function.Module._load (module.js:438:3)\r\n    at Module.require (module.js:497:17)\r\n    at require (internal/module.js:20:19)\r\n    at Object.exports.run (/home/sqz/opt/nvm/versions/node/v6.9.1/lib/node_modules/coffeescript/lib/coffeescript/command.js:114:14)\r\n    at Object.<anonymous> (/home/sqz/opt/nvm/versions/node/v6.9.1/lib/node_modules/coffeescript/bin/coffee:15:45)\r\n    at Module._compile (module.js:570:32)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n    at Function.Module._load (module.js:438:3)\r\n    at Module.runMain (module.js:604:10)\r\n    at run (bootstrap_node.js:394:7)\r\n    at startup (bootstrap_node.js:149:9)\r\n    at bootstrap_node.js:509:3\r\n\r\n[sqz@localhost~/Downloads]  $ uname -a   \r\nLinux localhost 3.18.0-15976-g75b344ab7870 #1 SMP PREEMPT Mon Aug 28 11:13:29 PDT 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n[sqz@localhost~/Downloads]  $ cat /etc/issue \r\nUbuntu 16.04.2 LTS \\n \\l\r\n```"},"comment":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/comments/326405339","html_url":"https://github.com/jashkenas/coffeescript/issues/4676#issuecomment-326405339","issue_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4676","id":326405339,"user":{"login":"GeoffreyBooth","id":456802,"avatar_url":"https://avatars2.githubusercontent.com/u/456802?v=4","gravatar_id":"","url":"https://api.github.com/users/GeoffreyBooth","html_url":"https://github.com/GeoffreyBooth","followers_url":"https://api.github.com/users/GeoffreyBooth/followers","following_url":"https://api.github.com/users/GeoffreyBooth/following{/other_user}","gists_url":"https://api.github.com/users/GeoffreyBooth/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoffreyBooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoffreyBooth/subscriptions","organizations_url":"https://api.github.com/users/GeoffreyBooth/orgs","repos_url":"https://api.github.com/users/GeoffreyBooth/repos","events_url":"https://api.github.com/users/GeoffreyBooth/events{/privacy}","received_events_url":"https://api.github.com/users/GeoffreyBooth/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T20:02:44Z","updated_at":"2017-08-31T20:02:44Z","author_association":"COLLABORATOR","body":"This is because of #4604, which assumes Node 7.6+. If you upgrade to Node 8, that should solve your issue.\r\n\r\n@connec should we put some kind of `if` on the async-in-REPL code so that it only loads on Node 7.6+?"}}
{"actor":{"display_login":"GeoffreyBooth"}}