{"action":"opened","number":129,"pull_request":{"url":"https://api.github.com/repos/jakearchibald/es6-promise/pulls/129","id":41418409,"html_url":"https://github.com/jakearchibald/es6-promise/pull/129","diff_url":"https://github.com/jakearchibald/es6-promise/pull/129.diff","patch_url":"https://github.com/jakearchibald/es6-promise/pull/129.patch","issue_url":"https://api.github.com/repos/jakearchibald/es6-promise/issues/129","number":129,"state":"open","locked":false,"title":"Properly detect Node environment.","user":{"login":"brzpegasus","id":1691398,"avatar_url":"https://avatars.githubusercontent.com/u/1691398?v=3","gravatar_id":"","url":"https://api.github.com/users/brzpegasus","html_url":"https://github.com/brzpegasus","followers_url":"https://api.github.com/users/brzpegasus/followers","following_url":"https://api.github.com/users/brzpegasus/following{/other_user}","gists_url":"https://api.github.com/users/brzpegasus/gists{/gist_id}","starred_url":"https://api.github.com/users/brzpegasus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brzpegasus/subscriptions","organizations_url":"https://api.github.com/users/brzpegasus/orgs","repos_url":"https://api.github.com/users/brzpegasus/repos","events_url":"https://api.github.com/users/brzpegasus/events{/privacy}","received_events_url":"https://api.github.com/users/brzpegasus/received_events","type":"User","site_admin":false},"body":"This has been discussed in [rsvp](https://github.com/tildeio/rsvp.js/pull/401).\r\n\r\nIn addition to verifying that `process` exists, we need to ensure that `self` is undefined before declaring that the code is executing in Node. This will allow `asap` to select the correct `scheduleFlush` method when running in environments that also define `process` in the browser (such as NW.js or Electron).","created_at":"2015-08-02T14:09:34Z","updated_at":"2015-08-02T14:09:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jakearchibald/es6-promise/pulls/129/commits","review_comments_url":"https://api.github.com/repos/jakearchibald/es6-promise/pulls/129/comments","review_comment_url":"https://api.github.com/repos/jakearchibald/es6-promise/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jakearchibald/es6-promise/issues/129/comments","statuses_url":"https://api.github.com/repos/jakearchibald/es6-promise/statuses/1a9053f42d6dd03654ec8faa71afce6c7b4689da","head":{"label":"brzpegasus:node-detection","ref":"node-detection","sha":"1a9053f42d6dd03654ec8faa71afce6c7b4689da","user":{"login":"brzpegasus","id":1691398,"avatar_url":"https://avatars.githubusercontent.com/u/1691398?v=3","gravatar_id":"","url":"https://api.github.com/users/brzpegasus","html_url":"https://github.com/brzpegasus","followers_url":"https://api.github.com/users/brzpegasus/followers","following_url":"https://api.github.com/users/brzpegasus/following{/other_user}","gists_url":"https://api.github.com/users/brzpegasus/gists{/gist_id}","starred_url":"https://api.github.com/users/brzpegasus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brzpegasus/subscriptions","organizations_url":"https://api.github.com/users/brzpegasus/orgs","repos_url":"https://api.github.com/users/brzpegasus/repos","events_url":"https://api.github.com/users/brzpegasus/events{/privacy}","received_events_url":"https://api.github.com/users/brzpegasus/received_events","type":"User","site_admin":false},"repo":{"id":40080588,"name":"es6-promise","full_name":"brzpegasus/es6-promise","owner":{"login":"brzpegasus","id":1691398,"avatar_url":"https://avatars.githubusercontent.com/u/1691398?v=3","gravatar_id":"","url":"https://api.github.com/users/brzpegasus","html_url":"https://github.com/brzpegasus","followers_url":"https://api.github.com/users/brzpegasus/followers","following_url":"https://api.github.com/users/brzpegasus/following{/other_user}","gists_url":"https://api.github.com/users/brzpegasus/gists{/gist_id}","starred_url":"https://api.github.com/users/brzpegasus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brzpegasus/subscriptions","organizations_url":"https://api.github.com/users/brzpegasus/orgs","repos_url":"https://api.github.com/users/brzpegasus/repos","events_url":"https://api.github.com/users/brzpegasus/events{/privacy}","received_events_url":"https://api.github.com/users/brzpegasus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brzpegasus/es6-promise","description":"A polyfill for ES6-style Promises","fork":true,"url":"https://api.github.com/repos/brzpegasus/es6-promise","forks_url":"https://api.github.com/repos/brzpegasus/es6-promise/forks","keys_url":"https://api.github.com/repos/brzpegasus/es6-promise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brzpegasus/es6-promise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brzpegasus/es6-promise/teams","hooks_url":"https://api.github.com/repos/brzpegasus/es6-promise/hooks","issue_events_url":"https://api.github.com/repos/brzpegasus/es6-promise/issues/events{/number}","events_url":"https://api.github.com/repos/brzpegasus/es6-promise/events","assignees_url":"https://api.github.com/repos/brzpegasus/es6-promise/assignees{/user}","branches_url":"https://api.github.com/repos/brzpegasus/es6-promise/branches{/branch}","tags_url":"https://api.github.com/repos/brzpegasus/es6-promise/tags","blobs_url":"https://api.github.com/repos/brzpegasus/es6-promise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brzpegasus/es6-promise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brzpegasus/es6-promise/git/refs{/sha}","trees_url":"https://api.github.com/repos/brzpegasus/es6-promise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brzpegasus/es6-promise/statuses/{sha}","languages_url":"https://api.github.com/repos/brzpegasus/es6-promise/languages","stargazers_url":"https://api.github.com/repos/brzpegasus/es6-promise/stargazers","contributors_url":"https://api.github.com/repos/brzpegasus/es6-promise/contributors","subscribers_url":"https://api.github.com/repos/brzpegasus/es6-promise/subscribers","subscription_url":"https://api.github.com/repos/brzpegasus/es6-promise/subscription","commits_url":"https://api.github.com/repos/brzpegasus/es6-promise/commits{/sha}","git_commits_url":"https://api.github.com/repos/brzpegasus/es6-promise/git/commits{/sha}","comments_url":"https://api.github.com/repos/brzpegasus/es6-promise/comments{/number}","issue_comment_url":"https://api.github.com/repos/brzpegasus/es6-promise/issues/comments{/number}","contents_url":"https://api.github.com/repos/brzpegasus/es6-promise/contents/{+path}","compare_url":"https://api.github.com/repos/brzpegasus/es6-promise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brzpegasus/es6-promise/merges","archive_url":"https://api.github.com/repos/brzpegasus/es6-promise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brzpegasus/es6-promise/downloads","issues_url":"https://api.github.com/repos/brzpegasus/es6-promise/issues{/number}","pulls_url":"https://api.github.com/repos/brzpegasus/es6-promise/pulls{/number}","milestones_url":"https://api.github.com/repos/brzpegasus/es6-promise/milestones{/number}","notifications_url":"https://api.github.com/repos/brzpegasus/es6-promise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brzpegasus/es6-promise/labels{/name}","releases_url":"https://api.github.com/repos/brzpegasus/es6-promise/releases{/id}","created_at":"2015-08-02T13:44:01Z","updated_at":"2015-08-02T13:44:02Z","pushed_at":"2015-08-02T14:07:36Z","git_url":"git://github.com/brzpegasus/es6-promise.git","ssh_url":"git@github.com:brzpegasus/es6-promise.git","clone_url":"https://github.com/brzpegasus/es6-promise.git","svn_url":"https://github.com/brzpegasus/es6-promise","homepage":null,"size":1088,"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":"jakearchibald:master","ref":"master","sha":"1e88f88bab1626911432a507613d63107f252e63","user":{"login":"jakearchibald","id":93594,"avatar_url":"https://avatars.githubusercontent.com/u/93594?v=3","gravatar_id":"","url":"https://api.github.com/users/jakearchibald","html_url":"https://github.com/jakearchibald","followers_url":"https://api.github.com/users/jakearchibald/followers","following_url":"https://api.github.com/users/jakearchibald/following{/other_user}","gists_url":"https://api.github.com/users/jakearchibald/gists{/gist_id}","starred_url":"https://api.github.com/users/jakearchibald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakearchibald/subscriptions","organizations_url":"https://api.github.com/users/jakearchibald/orgs","repos_url":"https://api.github.com/users/jakearchibald/repos","events_url":"https://api.github.com/users/jakearchibald/events{/privacy}","received_events_url":"https://api.github.com/users/jakearchibald/received_events","type":"User","site_admin":false},"repo":{"id":15046172,"name":"es6-promise","full_name":"jakearchibald/es6-promise","owner":{"login":"jakearchibald","id":93594,"avatar_url":"https://avatars.githubusercontent.com/u/93594?v=3","gravatar_id":"","url":"https://api.github.com/users/jakearchibald","html_url":"https://github.com/jakearchibald","followers_url":"https://api.github.com/users/jakearchibald/followers","following_url":"https://api.github.com/users/jakearchibald/following{/other_user}","gists_url":"https://api.github.com/users/jakearchibald/gists{/gist_id}","starred_url":"https://api.github.com/users/jakearchibald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakearchibald/subscriptions","organizations_url":"https://api.github.com/users/jakearchibald/orgs","repos_url":"https://api.github.com/users/jakearchibald/repos","events_url":"https://api.github.com/users/jakearchibald/events{/privacy}","received_events_url":"https://api.github.com/users/jakearchibald/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jakearchibald/es6-promise","description":"A polyfill for ES6-style Promises","fork":false,"url":"https://api.github.com/repos/jakearchibald/es6-promise","forks_url":"https://api.github.com/repos/jakearchibald/es6-promise/forks","keys_url":"https://api.github.com/repos/jakearchibald/es6-promise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jakearchibald/es6-promise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jakearchibald/es6-promise/teams","hooks_url":"https://api.github.com/repos/jakearchibald/es6-promise/hooks","issue_events_url":"https://api.github.com/repos/jakearchibald/es6-promise/issues/events{/number}","events_url":"https://api.github.com/repos/jakearchibald/es6-promise/events","assignees_url":"https://api.github.com/repos/jakearchibald/es6-promise/assignees{/user}","branches_url":"https://api.github.com/repos/jakearchibald/es6-promise/branches{/branch}","tags_url":"https://api.github.com/repos/jakearchibald/es6-promise/tags","blobs_url":"https://api.github.com/repos/jakearchibald/es6-promise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jakearchibald/es6-promise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jakearchibald/es6-promise/git/refs{/sha}","trees_url":"https://api.github.com/repos/jakearchibald/es6-promise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jakearchibald/es6-promise/statuses/{sha}","languages_url":"https://api.github.com/repos/jakearchibald/es6-promise/languages","stargazers_url":"https://api.github.com/repos/jakearchibald/es6-promise/stargazers","contributors_url":"https://api.github.com/repos/jakearchibald/es6-promise/contributors","subscribers_url":"https://api.github.com/repos/jakearchibald/es6-promise/subscribers","subscription_url":"https://api.github.com/repos/jakearchibald/es6-promise/subscription","commits_url":"https://api.github.com/repos/jakearchibald/es6-promise/commits{/sha}","git_commits_url":"https://api.github.com/repos/jakearchibald/es6-promise/git/commits{/sha}","comments_url":"https://api.github.com/repos/jakearchibald/es6-promise/comments{/number}","issue_comment_url":"https://api.github.com/repos/jakearchibald/es6-promise/issues/comments{/number}","contents_url":"https://api.github.com/repos/jakearchibald/es6-promise/contents/{+path}","compare_url":"https://api.github.com/repos/jakearchibald/es6-promise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jakearchibald/es6-promise/merges","archive_url":"https://api.github.com/repos/jakearchibald/es6-promise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jakearchibald/es6-promise/downloads","issues_url":"https://api.github.com/repos/jakearchibald/es6-promise/issues{/number}","pulls_url":"https://api.github.com/repos/jakearchibald/es6-promise/pulls{/number}","milestones_url":"https://api.github.com/repos/jakearchibald/es6-promise/milestones{/number}","notifications_url":"https://api.github.com/repos/jakearchibald/es6-promise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jakearchibald/es6-promise/labels{/name}","releases_url":"https://api.github.com/repos/jakearchibald/es6-promise/releases{/id}","created_at":"2013-12-09T12:04:03Z","updated_at":"2015-08-01T23:16:59Z","pushed_at":"2015-07-10T22:12:00Z","git_url":"git://github.com/jakearchibald/es6-promise.git","ssh_url":"git@github.com:jakearchibald/es6-promise.git","clone_url":"https://github.com/jakearchibald/es6-promise.git","svn_url":"https://github.com/jakearchibald/es6-promise","homepage":null,"size":1088,"stargazers_count":1842,"watchers_count":1842,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":88,"mirror_url":null,"open_issues_count":15,"forks":88,"open_issues":15,"watchers":1842,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jakearchibald/es6-promise/pulls/129"},"html":{"href":"https://github.com/jakearchibald/es6-promise/pull/129"},"issue":{"href":"https://api.github.com/repos/jakearchibald/es6-promise/issues/129"},"comments":{"href":"https://api.github.com/repos/jakearchibald/es6-promise/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/jakearchibald/es6-promise/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/jakearchibald/es6-promise/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jakearchibald/es6-promise/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/jakearchibald/es6-promise/statuses/1a9053f42d6dd03654ec8faa71afce6c7b4689da"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":3}}