{"action":"created","comment":{"url":"https://api.github.com/repos/caolan/async/pulls/comments/61486495","id":61486495,"diff_hunk":"@@ -4,10 +4,10 @@ import arrayMap from 'lodash/_arrayMap';\n import clone from 'lodash/_copyArray';\n import isArray from 'lodash/isArray';\n \n-var argsRegex =  /^function\\s*[^\\(]*\\(\\s*([^\\)]*)\\)/m;\n+var argsRegex = /^(function[^\\(]*)?\\(?\\s*([^\\)=]*)/m;\n \n function parseParams(func) {\n-    return  func.toString().match(argsRegex)[1].split(/\\s*\\,\\s*/);\n+    return func.toString().match(argsRegex)[2].trim().split(/\\s*\\,\\s*/);","path":"lib/autoInject.js","position":9,"original_position":9,"commit_id":"a35af5192ffbe1215376dde7e8adfe277603643e","original_commit_id":"a35af5192ffbe1215376dde7e8adfe277603643e","user":{"login":"aearly","id":558190,"avatar_url":"https://avatars.githubusercontent.com/u/558190?v=3","gravatar_id":"","url":"https://api.github.com/users/aearly","html_url":"https://github.com/aearly","followers_url":"https://api.github.com/users/aearly/followers","following_url":"https://api.github.com/users/aearly/following{/other_user}","gists_url":"https://api.github.com/users/aearly/gists{/gist_id}","starred_url":"https://api.github.com/users/aearly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aearly/subscriptions","organizations_url":"https://api.github.com/users/aearly/orgs","repos_url":"https://api.github.com/users/aearly/repos","events_url":"https://api.github.com/users/aearly/events{/privacy}","received_events_url":"https://api.github.com/users/aearly/received_events","type":"User","site_admin":false},"body":"@jdalton any ideas on how to feature-detect native arrow-function support for testing?","created_at":"2016-04-28T19:15:37Z","updated_at":"2016-04-28T19:15:37Z","html_url":"https://github.com/caolan/async/pull/1125#discussion_r61486495","pull_request_url":"https://api.github.com/repos/caolan/async/pulls/1125","_links":{"self":{"href":"https://api.github.com/repos/caolan/async/pulls/comments/61486495"},"html":{"href":"https://github.com/caolan/async/pull/1125#discussion_r61486495"},"pull_request":{"href":"https://api.github.com/repos/caolan/async/pulls/1125"}}},"pull_request":{"url":"https://api.github.com/repos/caolan/async/pulls/1125","id":67672593,"html_url":"https://github.com/caolan/async/pull/1125","diff_url":"https://github.com/caolan/async/pull/1125.diff","patch_url":"https://github.com/caolan/async/pull/1125.patch","issue_url":"https://api.github.com/repos/caolan/async/issues/1125","number":1125,"state":"open","locked":false,"title":"Arrow function support in ES6.","user":{"login":"steverobb","id":7372208,"avatar_url":"https://avatars.githubusercontent.com/u/7372208?v=3","gravatar_id":"","url":"https://api.github.com/users/steverobb","html_url":"https://github.com/steverobb","followers_url":"https://api.github.com/users/steverobb/followers","following_url":"https://api.github.com/users/steverobb/following{/other_user}","gists_url":"https://api.github.com/users/steverobb/gists{/gist_id}","starred_url":"https://api.github.com/users/steverobb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steverobb/subscriptions","organizations_url":"https://api.github.com/users/steverobb/orgs","repos_url":"https://api.github.com/users/steverobb/repos","events_url":"https://api.github.com/users/steverobb/events{/privacy}","received_events_url":"https://api.github.com/users/steverobb/received_events","type":"User","site_admin":false},"body":"Support for ES6 arrow function in autoInject:\r\n\r\n```\r\nasync.autoInject({\r\n    task1: (cb)        => cb(null, 1),\r\n    task2: (task3, cb) => cb(null, 2),\r\n    task3: cb          => cb(null, 3)\r\n}, (err, task3, task1) => {\r\n    // use task1 and task3\r\n});\r\n```","created_at":"2016-04-25T06:50:30Z","updated_at":"2016-04-28T19:15:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3895bf493b5bf3025e7e5c71770cdd4e6fe36a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/caolan/async/pulls/1125/commits","review_comments_url":"https://api.github.com/repos/caolan/async/pulls/1125/comments","review_comment_url":"https://api.github.com/repos/caolan/async/pulls/comments{/number}","comments_url":"https://api.github.com/repos/caolan/async/issues/1125/comments","statuses_url":"https://api.github.com/repos/caolan/async/statuses/a35af5192ffbe1215376dde7e8adfe277603643e","head":{"label":"steverobb:es6arrows","ref":"es6arrows","sha":"a35af5192ffbe1215376dde7e8adfe277603643e","user":{"login":"steverobb","id":7372208,"avatar_url":"https://avatars.githubusercontent.com/u/7372208?v=3","gravatar_id":"","url":"https://api.github.com/users/steverobb","html_url":"https://github.com/steverobb","followers_url":"https://api.github.com/users/steverobb/followers","following_url":"https://api.github.com/users/steverobb/following{/other_user}","gists_url":"https://api.github.com/users/steverobb/gists{/gist_id}","starred_url":"https://api.github.com/users/steverobb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steverobb/subscriptions","organizations_url":"https://api.github.com/users/steverobb/orgs","repos_url":"https://api.github.com/users/steverobb/repos","events_url":"https://api.github.com/users/steverobb/events{/privacy}","received_events_url":"https://api.github.com/users/steverobb/received_events","type":"User","site_admin":false},"repo":{"id":23041175,"name":"async","full_name":"steverobb/async","owner":{"login":"steverobb","id":7372208,"avatar_url":"https://avatars.githubusercontent.com/u/7372208?v=3","gravatar_id":"","url":"https://api.github.com/users/steverobb","html_url":"https://github.com/steverobb","followers_url":"https://api.github.com/users/steverobb/followers","following_url":"https://api.github.com/users/steverobb/following{/other_user}","gists_url":"https://api.github.com/users/steverobb/gists{/gist_id}","starred_url":"https://api.github.com/users/steverobb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steverobb/subscriptions","organizations_url":"https://api.github.com/users/steverobb/orgs","repos_url":"https://api.github.com/users/steverobb/repos","events_url":"https://api.github.com/users/steverobb/events{/privacy}","received_events_url":"https://api.github.com/users/steverobb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/steverobb/async","description":"Async utilities for node and the browser","fork":true,"url":"https://api.github.com/repos/steverobb/async","forks_url":"https://api.github.com/repos/steverobb/async/forks","keys_url":"https://api.github.com/repos/steverobb/async/keys{/key_id}","collaborators_url":"https://api.github.com/repos/steverobb/async/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/steverobb/async/teams","hooks_url":"https://api.github.com/repos/steverobb/async/hooks","issue_events_url":"https://api.github.com/repos/steverobb/async/issues/events{/number}","events_url":"https://api.github.com/repos/steverobb/async/events","assignees_url":"https://api.github.com/repos/steverobb/async/assignees{/user}","branches_url":"https://api.github.com/repos/steverobb/async/branches{/branch}","tags_url":"https://api.github.com/repos/steverobb/async/tags","blobs_url":"https://api.github.com/repos/steverobb/async/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/steverobb/async/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/steverobb/async/git/refs{/sha}","trees_url":"https://api.github.com/repos/steverobb/async/git/trees{/sha}","statuses_url":"https://api.github.com/repos/steverobb/async/statuses/{sha}","languages_url":"https://api.github.com/repos/steverobb/async/languages","stargazers_url":"https://api.github.com/repos/steverobb/async/stargazers","contributors_url":"https://api.github.com/repos/steverobb/async/contributors","subscribers_url":"https://api.github.com/repos/steverobb/async/subscribers","subscription_url":"https://api.github.com/repos/steverobb/async/subscription","commits_url":"https://api.github.com/repos/steverobb/async/commits{/sha}","git_commits_url":"https://api.github.com/repos/steverobb/async/git/commits{/sha}","comments_url":"https://api.github.com/repos/steverobb/async/comments{/number}","issue_comment_url":"https://api.github.com/repos/steverobb/async/issues/comments{/number}","contents_url":"https://api.github.com/repos/steverobb/async/contents/{+path}","compare_url":"https://api.github.com/repos/steverobb/async/compare/{base}...{head}","merges_url":"https://api.github.com/repos/steverobb/async/merges","archive_url":"https://api.github.com/repos/steverobb/async/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/steverobb/async/downloads","issues_url":"https://api.github.com/repos/steverobb/async/issues{/number}","pulls_url":"https://api.github.com/repos/steverobb/async/pulls{/number}","milestones_url":"https://api.github.com/repos/steverobb/async/milestones{/number}","notifications_url":"https://api.github.com/repos/steverobb/async/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/steverobb/async/labels{/name}","releases_url":"https://api.github.com/repos/steverobb/async/releases{/id}","deployments_url":"https://api.github.com/repos/steverobb/async/deployments","created_at":"2014-08-17T13:32:59Z","updated_at":"2016-04-06T00:01:37Z","pushed_at":"2016-04-26T07:08:32Z","git_url":"git://github.com/steverobb/async.git","ssh_url":"git@github.com:steverobb/async.git","clone_url":"https://github.com/steverobb/async.git","svn_url":"https://github.com/steverobb/async","homepage":"","size":2111,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"caolan:master","ref":"master","sha":"a50b252794979c66ecb75e8f33cac882c1019ef0","user":{"login":"caolan","id":5274,"avatar_url":"https://avatars.githubusercontent.com/u/5274?v=3","gravatar_id":"","url":"https://api.github.com/users/caolan","html_url":"https://github.com/caolan","followers_url":"https://api.github.com/users/caolan/followers","following_url":"https://api.github.com/users/caolan/following{/other_user}","gists_url":"https://api.github.com/users/caolan/gists{/gist_id}","starred_url":"https://api.github.com/users/caolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caolan/subscriptions","organizations_url":"https://api.github.com/users/caolan/orgs","repos_url":"https://api.github.com/users/caolan/repos","events_url":"https://api.github.com/users/caolan/events{/privacy}","received_events_url":"https://api.github.com/users/caolan/received_events","type":"User","site_admin":false},"repo":{"id":698041,"name":"async","full_name":"caolan/async","owner":{"login":"caolan","id":5274,"avatar_url":"https://avatars.githubusercontent.com/u/5274?v=3","gravatar_id":"","url":"https://api.github.com/users/caolan","html_url":"https://github.com/caolan","followers_url":"https://api.github.com/users/caolan/followers","following_url":"https://api.github.com/users/caolan/following{/other_user}","gists_url":"https://api.github.com/users/caolan/gists{/gist_id}","starred_url":"https://api.github.com/users/caolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caolan/subscriptions","organizations_url":"https://api.github.com/users/caolan/orgs","repos_url":"https://api.github.com/users/caolan/repos","events_url":"https://api.github.com/users/caolan/events{/privacy}","received_events_url":"https://api.github.com/users/caolan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caolan/async","description":"Async utilities for node and the browser","fork":false,"url":"https://api.github.com/repos/caolan/async","forks_url":"https://api.github.com/repos/caolan/async/forks","keys_url":"https://api.github.com/repos/caolan/async/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caolan/async/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caolan/async/teams","hooks_url":"https://api.github.com/repos/caolan/async/hooks","issue_events_url":"https://api.github.com/repos/caolan/async/issues/events{/number}","events_url":"https://api.github.com/repos/caolan/async/events","assignees_url":"https://api.github.com/repos/caolan/async/assignees{/user}","branches_url":"https://api.github.com/repos/caolan/async/branches{/branch}","tags_url":"https://api.github.com/repos/caolan/async/tags","blobs_url":"https://api.github.com/repos/caolan/async/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caolan/async/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caolan/async/git/refs{/sha}","trees_url":"https://api.github.com/repos/caolan/async/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caolan/async/statuses/{sha}","languages_url":"https://api.github.com/repos/caolan/async/languages","stargazers_url":"https://api.github.com/repos/caolan/async/stargazers","contributors_url":"https://api.github.com/repos/caolan/async/contributors","subscribers_url":"https://api.github.com/repos/caolan/async/subscribers","subscription_url":"https://api.github.com/repos/caolan/async/subscription","commits_url":"https://api.github.com/repos/caolan/async/commits{/sha}","git_commits_url":"https://api.github.com/repos/caolan/async/git/commits{/sha}","comments_url":"https://api.github.com/repos/caolan/async/comments{/number}","issue_comment_url":"https://api.github.com/repos/caolan/async/issues/comments{/number}","contents_url":"https://api.github.com/repos/caolan/async/contents/{+path}","compare_url":"https://api.github.com/repos/caolan/async/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caolan/async/merges","archive_url":"https://api.github.com/repos/caolan/async/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caolan/async/downloads","issues_url":"https://api.github.com/repos/caolan/async/issues{/number}","pulls_url":"https://api.github.com/repos/caolan/async/pulls{/number}","milestones_url":"https://api.github.com/repos/caolan/async/milestones{/number}","notifications_url":"https://api.github.com/repos/caolan/async/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caolan/async/labels{/name}","releases_url":"https://api.github.com/repos/caolan/async/releases{/id}","deployments_url":"https://api.github.com/repos/caolan/async/deployments","created_at":"2010-06-01T21:01:30Z","updated_at":"2016-04-28T18:52:50Z","pushed_at":"2016-04-28T11:23:51Z","git_url":"git://github.com/caolan/async.git","ssh_url":"git@github.com:caolan/async.git","clone_url":"https://github.com/caolan/async.git","svn_url":"https://github.com/caolan/async","homepage":"","size":4183,"stargazers_count":17426,"watchers_count":17426,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1719,"mirror_url":null,"open_issues_count":22,"forks":1719,"open_issues":22,"watchers":17426,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/caolan/async/pulls/1125"},"html":{"href":"https://github.com/caolan/async/pull/1125"},"issue":{"href":"https://api.github.com/repos/caolan/async/issues/1125"},"comments":{"href":"https://api.github.com/repos/caolan/async/issues/1125/comments"},"review_comments":{"href":"https://api.github.com/repos/caolan/async/pulls/1125/comments"},"review_comment":{"href":"https://api.github.com/repos/caolan/async/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/caolan/async/pulls/1125/commits"},"statuses":{"href":"https://api.github.com/repos/caolan/async/statuses/a35af5192ffbe1215376dde7e8adfe277603643e"}}}}