{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/execa/pulls/comments/61671733","id":61671733,"diff_hunk":"@@ -0,0 +1,38 @@\n+'use strict';\n+// The Node team wants to deprecate `process.bind(...)`.\n+//   https://github.com/nodejs/node/pull/2768\n+//\n+// However, we need the 'uv' binding for errname support.\n+// This is a defensive wrapper around it so `execa` will not fail entirely if it stops working someday.\n+//\n+// If this ever stops working. See: https://github.com/sindresorhus/execa/issues/31#issuecomment-215939939 for another possible solution.\n+var uv;\n+\n+try {\n+\tuv = process.binding('uv');","path":"lib/errname.js","position":12,"original_position":12,"commit_id":"9c3a87ef04834fd2e4ff9415032cdf6523c56c07","original_commit_id":"9c3a87ef04834fd2e4ff9415032cdf6523c56c07","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"body":"empty line here","created_at":"2016-04-30T16:35:54Z","updated_at":"2016-04-30T16:35:54Z","html_url":"https://github.com/sindresorhus/execa/pull/38#discussion_r61671733","pull_request_url":"https://api.github.com/repos/sindresorhus/execa/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/execa/pulls/comments/61671733"},"html":{"href":"https://github.com/sindresorhus/execa/pull/38#discussion_r61671733"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/execa/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/execa/pulls/38","id":68460270,"html_url":"https://github.com/sindresorhus/execa/pull/38","diff_url":"https://github.com/sindresorhus/execa/pull/38.diff","patch_url":"https://github.com/sindresorhus/execa/pull/38.patch","issue_url":"https://api.github.com/repos/sindresorhus/execa/issues/38","number":38,"state":"open","locked":false,"title":"reimplement errname lookup.","user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"body":"Fixes #31\n\nI can not for the life of me figure out how to create a test that actually triggers the affected code in `index.js`. I can't create a negative error code in a way that causes `!err` to be true.","created_at":"2016-04-30T06:40:52Z","updated_at":"2016-04-30T16:35:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65a2fbd100bb2de2e69fe1eecf873ad1866555cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/execa/pulls/38/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/execa/pulls/38/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/execa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/execa/issues/38/comments","statuses_url":"https://api.github.com/repos/sindresorhus/execa/statuses/9c3a87ef04834fd2e4ff9415032cdf6523c56c07","head":{"label":"jamestalmage:reimplement-errname","ref":"reimplement-errname","sha":"9c3a87ef04834fd2e4ff9415032cdf6523c56c07","user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"repo":{"id":56888408,"name":"execa","full_name":"jamestalmage/execa","owner":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamestalmage/execa","description":"A better `child_process`","fork":true,"url":"https://api.github.com/repos/jamestalmage/execa","forks_url":"https://api.github.com/repos/jamestalmage/execa/forks","keys_url":"https://api.github.com/repos/jamestalmage/execa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamestalmage/execa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamestalmage/execa/teams","hooks_url":"https://api.github.com/repos/jamestalmage/execa/hooks","issue_events_url":"https://api.github.com/repos/jamestalmage/execa/issues/events{/number}","events_url":"https://api.github.com/repos/jamestalmage/execa/events","assignees_url":"https://api.github.com/repos/jamestalmage/execa/assignees{/user}","branches_url":"https://api.github.com/repos/jamestalmage/execa/branches{/branch}","tags_url":"https://api.github.com/repos/jamestalmage/execa/tags","blobs_url":"https://api.github.com/repos/jamestalmage/execa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamestalmage/execa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamestalmage/execa/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamestalmage/execa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamestalmage/execa/statuses/{sha}","languages_url":"https://api.github.com/repos/jamestalmage/execa/languages","stargazers_url":"https://api.github.com/repos/jamestalmage/execa/stargazers","contributors_url":"https://api.github.com/repos/jamestalmage/execa/contributors","subscribers_url":"https://api.github.com/repos/jamestalmage/execa/subscribers","subscription_url":"https://api.github.com/repos/jamestalmage/execa/subscription","commits_url":"https://api.github.com/repos/jamestalmage/execa/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamestalmage/execa/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamestalmage/execa/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamestalmage/execa/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamestalmage/execa/contents/{+path}","compare_url":"https://api.github.com/repos/jamestalmage/execa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamestalmage/execa/merges","archive_url":"https://api.github.com/repos/jamestalmage/execa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamestalmage/execa/downloads","issues_url":"https://api.github.com/repos/jamestalmage/execa/issues{/number}","pulls_url":"https://api.github.com/repos/jamestalmage/execa/pulls{/number}","milestones_url":"https://api.github.com/repos/jamestalmage/execa/milestones{/number}","notifications_url":"https://api.github.com/repos/jamestalmage/execa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamestalmage/execa/labels{/name}","releases_url":"https://api.github.com/repos/jamestalmage/execa/releases{/id}","deployments_url":"https://api.github.com/repos/jamestalmage/execa/deployments","created_at":"2016-04-22T22:19:50Z","updated_at":"2016-04-22T22:19:51Z","pushed_at":"2016-04-30T06:39:21Z","git_url":"git://github.com/jamestalmage/execa.git","ssh_url":"git@github.com:jamestalmage/execa.git","clone_url":"https://github.com/jamestalmage/execa.git","svn_url":"https://github.com/jamestalmage/execa","homepage":"","size":40,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sindresorhus:master","ref":"master","sha":"1d8f3a4c2150f7b37f87c3c15a5e4998f3ee8f98","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":47475908,"name":"execa","full_name":"sindresorhus/execa","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/execa","description":"A better `child_process`","fork":false,"url":"https://api.github.com/repos/sindresorhus/execa","forks_url":"https://api.github.com/repos/sindresorhus/execa/forks","keys_url":"https://api.github.com/repos/sindresorhus/execa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/execa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/execa/teams","hooks_url":"https://api.github.com/repos/sindresorhus/execa/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/execa/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/execa/events","assignees_url":"https://api.github.com/repos/sindresorhus/execa/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/execa/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/execa/tags","blobs_url":"https://api.github.com/repos/sindresorhus/execa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/execa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/execa/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/execa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/execa/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/execa/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/execa/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/execa/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/execa/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/execa/subscription","commits_url":"https://api.github.com/repos/sindresorhus/execa/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/execa/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/execa/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/execa/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/execa/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/execa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/execa/merges","archive_url":"https://api.github.com/repos/sindresorhus/execa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/execa/downloads","issues_url":"https://api.github.com/repos/sindresorhus/execa/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/execa/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/execa/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/execa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/execa/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/execa/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/execa/deployments","created_at":"2015-12-05T22:57:03Z","updated_at":"2016-04-30T10:12:48Z","pushed_at":"2016-04-30T06:40:54Z","git_url":"git://github.com/sindresorhus/execa.git","ssh_url":"git@github.com:sindresorhus/execa.git","clone_url":"https://github.com/sindresorhus/execa.git","svn_url":"https://github.com/sindresorhus/execa","homepage":"","size":54,"stargazers_count":121,"watchers_count":121,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":19,"forks":3,"open_issues":19,"watchers":121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/execa/pulls/38"},"html":{"href":"https://github.com/sindresorhus/execa/pull/38"},"issue":{"href":"https://api.github.com/repos/sindresorhus/execa/issues/38"},"comments":{"href":"https://api.github.com/repos/sindresorhus/execa/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/execa/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/execa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/execa/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/execa/statuses/9c3a87ef04834fd2e4ff9415032cdf6523c56c07"}}}}