{"action":"opened","number":203,"pull_request":{"url":"https://api.github.com/repos/maxtaco/coffee-script/pulls/203","id":186169512,"html_url":"https://github.com/maxtaco/coffee-script/pull/203","diff_url":"https://github.com/maxtaco/coffee-script/pull/203.diff","patch_url":"https://github.com/maxtaco/coffee-script/pull/203.patch","issue_url":"https://api.github.com/repos/maxtaco/coffee-script/issues/203","number":203,"state":"open","locked":false,"title":"Add error message when defer slot is a function call","user":{"login":"zapu","id":451974,"avatar_url":"https://avatars3.githubusercontent.com/u/451974?v=4","gravatar_id":"","url":"https://api.github.com/users/zapu","html_url":"https://github.com/zapu","followers_url":"https://api.github.com/users/zapu/followers","following_url":"https://api.github.com/users/zapu/following{/other_user}","gists_url":"https://api.github.com/users/zapu/gists{/gist_id}","starred_url":"https://api.github.com/users/zapu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapu/subscriptions","organizations_url":"https://api.github.com/users/zapu/orgs","repos_url":"https://api.github.com/users/zapu/repos","events_url":"https://api.github.com/users/zapu/events{/privacy}","received_events_url":"https://api.github.com/users/zapu/received_events","type":"User","site_admin":false},"body":"This turned out to be an evening project to make the tests pass again on latest node and npm.\r\n\r\nPR fixes compilation error during `await foo defer err result`, which because of lack of comma is compiled as `await foo(defer(err(result)))` and `err(result)` is not valid slot. It's so not valid that it even crashes compiler.\r\n\r\n```\r\n » echo \"await func defer err foo\" | iced -cpbs\r\nTypeError: a.icedToSlot is not a function\r\n  at /usr/local/lib/node_modules/iced-coffee-script/lib/coffee-script/nodes.js:3196:27\r\n  at new Defer (/usr/local/lib/node_modules/iced-coffee-script/lib/coffee-script/nodes.js:3199:9)\r\n  at Object.anonymous (/usr/local/lib/node_modules/iced-coffee-script/lib/coffee-script/parser.js:312:58)\r\n  at Parser.parse (/usr/local/lib/node_modules/iced-coffee-script/lib/coffee-script/parser.js:690:36)\r\n\r\n » echo \"await func defer err foo\" | ./bin/coffee -cpbs\r\n[stdin]:1:18: error: function call cannot be a slot for defer\r\nawait func defer err foo\r\n                 ^^^^^^^\r\n```","created_at":"2018-05-05T18:25:21Z","updated_at":"2018-05-05T18:25:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/maxtaco/coffee-script/pulls/203/commits","review_comments_url":"https://api.github.com/repos/maxtaco/coffee-script/pulls/203/comments","review_comment_url":"https://api.github.com/repos/maxtaco/coffee-script/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maxtaco/coffee-script/issues/203/comments","statuses_url":"https://api.github.com/repos/maxtaco/coffee-script/statuses/84c098d73153938bba4d7e1dca0a9ae42bccb260","head":{"label":"zapu:zapu/iced2-fixes","ref":"zapu/iced2-fixes","sha":"84c098d73153938bba4d7e1dca0a9ae42bccb260","user":{"login":"zapu","id":451974,"avatar_url":"https://avatars3.githubusercontent.com/u/451974?v=4","gravatar_id":"","url":"https://api.github.com/users/zapu","html_url":"https://github.com/zapu","followers_url":"https://api.github.com/users/zapu/followers","following_url":"https://api.github.com/users/zapu/following{/other_user}","gists_url":"https://api.github.com/users/zapu/gists{/gist_id}","starred_url":"https://api.github.com/users/zapu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapu/subscriptions","organizations_url":"https://api.github.com/users/zapu/orgs","repos_url":"https://api.github.com/users/zapu/repos","events_url":"https://api.github.com/users/zapu/events{/privacy}","received_events_url":"https://api.github.com/users/zapu/received_events","type":"User","site_admin":false},"repo":{"id":43575084,"name":"coffeescript","full_name":"zapu/coffeescript","owner":{"login":"zapu","id":451974,"avatar_url":"https://avatars3.githubusercontent.com/u/451974?v=4","gravatar_id":"","url":"https://api.github.com/users/zapu","html_url":"https://github.com/zapu","followers_url":"https://api.github.com/users/zapu/followers","following_url":"https://api.github.com/users/zapu/following{/other_user}","gists_url":"https://api.github.com/users/zapu/gists{/gist_id}","starred_url":"https://api.github.com/users/zapu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapu/subscriptions","organizations_url":"https://api.github.com/users/zapu/orgs","repos_url":"https://api.github.com/users/zapu/repos","events_url":"https://api.github.com/users/zapu/events{/privacy}","received_events_url":"https://api.github.com/users/zapu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zapu/coffeescript","description":"Unfancy JavaScript","fork":true,"url":"https://api.github.com/repos/zapu/coffeescript","forks_url":"https://api.github.com/repos/zapu/coffeescript/forks","keys_url":"https://api.github.com/repos/zapu/coffeescript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zapu/coffeescript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zapu/coffeescript/teams","hooks_url":"https://api.github.com/repos/zapu/coffeescript/hooks","issue_events_url":"https://api.github.com/repos/zapu/coffeescript/issues/events{/number}","events_url":"https://api.github.com/repos/zapu/coffeescript/events","assignees_url":"https://api.github.com/repos/zapu/coffeescript/assignees{/user}","branches_url":"https://api.github.com/repos/zapu/coffeescript/branches{/branch}","tags_url":"https://api.github.com/repos/zapu/coffeescript/tags","blobs_url":"https://api.github.com/repos/zapu/coffeescript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zapu/coffeescript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zapu/coffeescript/git/refs{/sha}","trees_url":"https://api.github.com/repos/zapu/coffeescript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zapu/coffeescript/statuses/{sha}","languages_url":"https://api.github.com/repos/zapu/coffeescript/languages","stargazers_url":"https://api.github.com/repos/zapu/coffeescript/stargazers","contributors_url":"https://api.github.com/repos/zapu/coffeescript/contributors","subscribers_url":"https://api.github.com/repos/zapu/coffeescript/subscribers","subscription_url":"https://api.github.com/repos/zapu/coffeescript/subscription","commits_url":"https://api.github.com/repos/zapu/coffeescript/commits{/sha}","git_commits_url":"https://api.github.com/repos/zapu/coffeescript/git/commits{/sha}","comments_url":"https://api.github.com/repos/zapu/coffeescript/comments{/number}","issue_comment_url":"https://api.github.com/repos/zapu/coffeescript/issues/comments{/number}","contents_url":"https://api.github.com/repos/zapu/coffeescript/contents/{+path}","compare_url":"https://api.github.com/repos/zapu/coffeescript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zapu/coffeescript/merges","archive_url":"https://api.github.com/repos/zapu/coffeescript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zapu/coffeescript/downloads","issues_url":"https://api.github.com/repos/zapu/coffeescript/issues{/number}","pulls_url":"https://api.github.com/repos/zapu/coffeescript/pulls{/number}","milestones_url":"https://api.github.com/repos/zapu/coffeescript/milestones{/number}","notifications_url":"https://api.github.com/repos/zapu/coffeescript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zapu/coffeescript/labels{/name}","releases_url":"https://api.github.com/repos/zapu/coffeescript/releases{/id}","deployments_url":"https://api.github.com/repos/zapu/coffeescript/deployments","created_at":"2015-10-02T20:36:23Z","updated_at":"2015-10-02T20:36:27Z","pushed_at":"2018-05-05T18:18:50Z","git_url":"git://github.com/zapu/coffeescript.git","ssh_url":"git@github.com:zapu/coffeescript.git","clone_url":"https://github.com/zapu/coffeescript.git","svn_url":"https://github.com/zapu/coffeescript","homepage":"http://coffeescript.org/","size":25338,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"maxtaco:iced2","ref":"iced2","sha":"38037f9fe10058640710fcd0f56204ac6bd88ad3","user":{"login":"maxtaco","id":866815,"avatar_url":"https://avatars0.githubusercontent.com/u/866815?v=4","gravatar_id":"","url":"https://api.github.com/users/maxtaco","html_url":"https://github.com/maxtaco","followers_url":"https://api.github.com/users/maxtaco/followers","following_url":"https://api.github.com/users/maxtaco/following{/other_user}","gists_url":"https://api.github.com/users/maxtaco/gists{/gist_id}","starred_url":"https://api.github.com/users/maxtaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxtaco/subscriptions","organizations_url":"https://api.github.com/users/maxtaco/orgs","repos_url":"https://api.github.com/users/maxtaco/repos","events_url":"https://api.github.com/users/maxtaco/events{/privacy}","received_events_url":"https://api.github.com/users/maxtaco/received_events","type":"User","site_admin":false},"repo":{"id":2766429,"name":"coffee-script","full_name":"maxtaco/coffee-script","owner":{"login":"maxtaco","id":866815,"avatar_url":"https://avatars0.githubusercontent.com/u/866815?v=4","gravatar_id":"","url":"https://api.github.com/users/maxtaco","html_url":"https://github.com/maxtaco","followers_url":"https://api.github.com/users/maxtaco/followers","following_url":"https://api.github.com/users/maxtaco/following{/other_user}","gists_url":"https://api.github.com/users/maxtaco/gists{/gist_id}","starred_url":"https://api.github.com/users/maxtaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxtaco/subscriptions","organizations_url":"https://api.github.com/users/maxtaco/orgs","repos_url":"https://api.github.com/users/maxtaco/repos","events_url":"https://api.github.com/users/maxtaco/events{/privacy}","received_events_url":"https://api.github.com/users/maxtaco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxtaco/coffee-script","description":"IcedCoffeeScript","fork":true,"url":"https://api.github.com/repos/maxtaco/coffee-script","forks_url":"https://api.github.com/repos/maxtaco/coffee-script/forks","keys_url":"https://api.github.com/repos/maxtaco/coffee-script/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxtaco/coffee-script/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxtaco/coffee-script/teams","hooks_url":"https://api.github.com/repos/maxtaco/coffee-script/hooks","issue_events_url":"https://api.github.com/repos/maxtaco/coffee-script/issues/events{/number}","events_url":"https://api.github.com/repos/maxtaco/coffee-script/events","assignees_url":"https://api.github.com/repos/maxtaco/coffee-script/assignees{/user}","branches_url":"https://api.github.com/repos/maxtaco/coffee-script/branches{/branch}","tags_url":"https://api.github.com/repos/maxtaco/coffee-script/tags","blobs_url":"https://api.github.com/repos/maxtaco/coffee-script/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxtaco/coffee-script/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxtaco/coffee-script/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxtaco/coffee-script/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxtaco/coffee-script/statuses/{sha}","languages_url":"https://api.github.com/repos/maxtaco/coffee-script/languages","stargazers_url":"https://api.github.com/repos/maxtaco/coffee-script/stargazers","contributors_url":"https://api.github.com/repos/maxtaco/coffee-script/contributors","subscribers_url":"https://api.github.com/repos/maxtaco/coffee-script/subscribers","subscription_url":"https://api.github.com/repos/maxtaco/coffee-script/subscription","commits_url":"https://api.github.com/repos/maxtaco/coffee-script/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxtaco/coffee-script/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxtaco/coffee-script/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxtaco/coffee-script/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxtaco/coffee-script/contents/{+path}","compare_url":"https://api.github.com/repos/maxtaco/coffee-script/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxtaco/coffee-script/merges","archive_url":"https://api.github.com/repos/maxtaco/coffee-script/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxtaco/coffee-script/downloads","issues_url":"https://api.github.com/repos/maxtaco/coffee-script/issues{/number}","pulls_url":"https://api.github.com/repos/maxtaco/coffee-script/pulls{/number}","milestones_url":"https://api.github.com/repos/maxtaco/coffee-script/milestones{/number}","notifications_url":"https://api.github.com/repos/maxtaco/coffee-script/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxtaco/coffee-script/labels{/name}","releases_url":"https://api.github.com/repos/maxtaco/coffee-script/releases{/id}","deployments_url":"https://api.github.com/repos/maxtaco/coffee-script/deployments","created_at":"2011-11-13T13:24:59Z","updated_at":"2018-03-23T05:46:41Z","pushed_at":"2017-05-23T15:42:19Z","git_url":"git://github.com/maxtaco/coffee-script.git","ssh_url":"git@github.com:maxtaco/coffee-script.git","clone_url":"https://github.com/maxtaco/coffee-script.git","svn_url":"https://github.com/maxtaco/coffee-script","homepage":"http://maxtaco.github.com/coffee-script","size":23409,"stargazers_count":732,"watchers_count":732,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":81,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":56,"open_issues":81,"watchers":732,"default_branch":"iced2"}},"_links":{"self":{"href":"https://api.github.com/repos/maxtaco/coffee-script/pulls/203"},"html":{"href":"https://github.com/maxtaco/coffee-script/pull/203"},"issue":{"href":"https://api.github.com/repos/maxtaco/coffee-script/issues/203"},"comments":{"href":"https://api.github.com/repos/maxtaco/coffee-script/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/maxtaco/coffee-script/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/maxtaco/coffee-script/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maxtaco/coffee-script/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/maxtaco/coffee-script/statuses/84c098d73153938bba4d7e1dca0a9ae42bccb260"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":8939,"deletions":16,"changed_files":11}}
{"actor":{"display_login":"zapu"}}