{"action":"created","comment":{"url":"https://api.github.com/repos/iojs/io.js/pulls/comments/25302099","id":25302099,"diff_hunk":"@@ -0,0 +1,591 @@\n+var common = require('../common');\n+var assert = require('assert');\n+var domain = require('domain');\n+\n+var asyncTest = (function() {\n+  var asyncTestsEnabled = false;\n+  var asyncTestLastCheck;\n+  var asyncTestQueue = [];\n+  var asyncTestHandle;\n+  var currentTest = null;\n+\n+  function fail(error) {\n+    var stack = currentTest\n+          ? error.stack + '\\nFrom previous event:\\n' + currentTest.stack\n+          : error.stack;\n+\n+    process.stderr.write(stack);\n+    process.exit(2);\n+  }\n+\n+  function nextAsyncTest() {\n+    var called = false;\n+    function done(err) {\n+      if (called) return fail(new Error('done called twice'));\n+      called = true;\n+      asyncTestLastCheck = Date.now();\n+      if (arguments.length > 0) return fail(err);\n+      setTimeout(nextAsyncTest, 10);\n+    }\n+\n+    if (asyncTestQueue.length) {\n+      var test = asyncTestQueue.shift();\n+      currentTest = test;\n+      test.action(done);\n+    } else {\n+      clearInterval(asyncTestHandle);\n+    }\n+  }\n+\n+  return function asyncTest(fn) {\n+    var stack = new Error().stack.split('\\n').slice(1).join('\\n');\n+    asyncTestQueue.push({action: fn, stack: stack});\n+    if (!asyncTestsEnabled) {\n+      asyncTestsEnabled = true;\n+      asyncTestLastCheck = Date.now();\n+      process.on('uncaughtException', fail);\n+      asyncTestHandle = setInterval(function() {\n+        var now = Date.now();\n+        if (now - asyncTestLastCheck > 10000) {\n+          return fail(new Error('Async test timeout exceeded'));\n+        }\n+      }, 10);\n+      setTimeout(nextAsyncTest, 10);\n+    }\n+  };\n+\n+})();\n+\n+function setupException(fn) {\n+  var listeners = process.listeners('uncaughtException');\n+  process.removeAllListeners('uncaughtException');\n+  process.on('uncaughtException', fn);\n+  return function clean() {\n+    process.removeListener('uncaughtException', fn);\n+    listeners.forEach(function(listener) {\n+      process.on('uncaughtException', listener);\n+    });\n+  };\n+}\n+\n+function clean() {\n+  process.removeAllListeners('unhandledRejection');\n+  process.removeAllListeners('rejectionHandled');\n+}\n+\n+function onUnhandledSucceed(done, predicate) {\n+  clean();\n+  process.on('unhandledRejection', function(reason, promise) {\n+    try {\n+      predicate(reason, promise);\n+    } catch (e) {\n+      return done(e);\n+    }\n+    done();\n+  });\n+}\n+\n+function onUnhandledFail(done) {\n+  clean();\n+  process.on('unhandledRejection', function(reason, promise) {\n+    done(new Error('unhandledRejection not supposed to be triggered'));\n+  });\n+  process.on('rejectionHandled', function() {\n+    done(new Error('rejectionHandled not supposed to be triggered'));\n+  });\n+  setTimeout(function() {\n+    done();\n+  }, 10);\n+}\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+  });\n+  Promise.reject(e);\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+  });\n+  new Promise(function(_, reject) {\n+    reject(e);\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+  });\n+  new Promise(function(_, reject) {\n+    setImmediate(function() {\n+      reject(e);\n+    });\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+  });\n+  new Promise(function(_, reject) {\n+    setTimeout(function() {\n+      reject(e);\n+    }, 1);\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+  });\n+  var _reject;\n+  var promise = new Promise(function(_, reject) {\n+    _reject = reject;\n+  })\n+  _reject(e);\n+  setImmediate(function() {\n+    promise.then(assert.fail, function(){});\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+  });\n+  var _reject;\n+  var promise = new Promise(function(_, reject) {\n+    _reject = reject;\n+  });\n+  setImmediate(function() {\n+    promise.then(assert.fail, function(){});\n+  });\n+  _reject(e);\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  var e2 = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e2, reason);\n+    assert.strictEqual(promise2, promise);\n+  });\n+  var promise2 = Promise.reject(e).then(assert.fail, function(reason) {\n+    assert.strictEqual(e, reason);\n+    throw e2;\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  var e2 = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+    assert.strictEqual(promise, promise);\n+  });\n+  var promise = Promise.reject(e);\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  var e2 = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e2, reason);\n+    assert.strictEqual(promise2, promise);\n+  });\n+  var promise2 = new Promise(function(_, reject) {\n+    setTimeout(function() {\n+      reject(e);\n+    }, 1);\n+  }).then(assert.fail, function(reason) {\n+    assert.strictEqual(e, reason);\n+    throw e2;\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  var e2 = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e2, reason);\n+    assert.strictEqual(promise2, promise);\n+  });\n+  var promise = new Promise(function(_, reject) {\n+    setTimeout(function() {\n+      reject(e);\n+      process.nextTick(function() {\n+        promise2 = promise.then(assert.fail, function(reason) {\n+          assert.strictEqual(e, reason);\n+          throw e2;\n+        });\n+      });\n+    }, 1);\n+  });\n+  var promise2;\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  Promise.reject(e).then(assert.fail, function(){});\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  new Promise(function(_, reject) {\n+    reject(e);\n+  }).then(assert.fail, function(){});\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  var promise = Promise.reject(e);\n+  process.nextTick(function() {\n+    promise.then(assert.fail, function(){});\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  var promise = new Promise(function(_, reject) {\n+    reject(e);\n+  });\n+  process.nextTick(function() {\n+    promise.then(assert.fail, function(){});\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  var promise = new Promise(function(_, reject) {\n+    reject(e);\n+  });\n+  process.nextTick(function() {\n+    promise.then(assert.fail, function(){});\n+  });\n+});\n+\n+// State adapation tests\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  Promise.resolve().then(function() {\n+    return new Promise(function(_, reject) {\n+      setTimeout(function() {\n+        reject(e);\n+      }, 1);\n+    });\n+  }).then(assert.fail, function(reason) {\n+    assert.strictEqual(e, reason);\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  Promise.resolve().then(function() {\n+    throw e;\n+  }).then(assert.fail, function(reason) {\n+    assert.strictEqual(e, reason);\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  Promise.resolve().then(function() {\n+    return Promise.reject(e);\n+  }).then(assert.fail, function(reason) {\n+    assert.strictEqual(e, reason);\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  var _promise;\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+    assert.strictEqual(_promise, promise);\n+  });\n+  _promise = Promise.resolve().then(function() {\n+    return new Promise(function(_, reject) {\n+      setTimeout(function() {\n+        reject(e);\n+      }, 1);\n+    });\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  var _promise;\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+    assert.strictEqual(_promise, promise);\n+  });\n+  _promise = Promise.resolve().then(function() {\n+    throw e;\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  var _promise;\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+    assert.strictEqual(_promise, promise);\n+  });\n+  _promise = Promise.resolve().then(function() {\n+    return Promise.reject(e);\n+  });\n+});\n+\n+// Combinations with Promise.all\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  Promise.all([Promise.reject(e)]).then(assert.fail, function() {});\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  var p = new Promise(function(_, reject) {\n+    process.nextTick(function() {\n+      reject(e);\n+    });\n+  });\n+  p = Promise.all([p]);\n+  process.nextTick(function() {\n+    p.then(assert.fail, function() {});\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+    assert.strictEqual(p, promise);\n+  });\n+  var p = Promise.all([Promise.reject(e)]);\n+});\n+\n+asyncTest(function(done) {\n+  clean();\n+  var unhandledPromises = [];\n+  var e = new Error();\n+  process.on('unhandledRejection', function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+    unhandledPromises.push(promise);\n+  });\n+  process.on('rejectionHandled', function(promise) {\n+    assert.strictEqual(1, unhandledPromises.length);\n+    assert.strictEqual(unhandledPromises[0], promise);\n+    assert.strictEqual(thePromise, promise);\n+    done();\n+  });\n+\n+  var thePromise = new Promise(function() {\n+    throw e;\n+  });\n+  setTimeout(function() {\n+    thePromise.then(assert.fail, function(reason) {\n+      assert.strictEqual(e, reason);\n+    });\n+  }, 10);\n+});\n+\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+\n+  setImmediate(function() {\n+    var a = Promise.reject(e);\n+    process.nextTick(function() {\n+      Promise.resolve().then(function() {\n+        process.nextTick(function() {\n+          Promise.resolve().then(function() {\n+            a.catch(function() {});\n+          });\n+        });\n+      });\n+    });\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+\n+  setTimeout(function() {\n+    var a = Promise.reject(e);\n+    process.nextTick(function() {\n+      Promise.resolve().then(function() {\n+        process.nextTick(function() {\n+          Promise.resolve().then(function() {\n+            a.catch(function() {});\n+          });\n+        });\n+      });\n+    });\n+  }, 0);\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(e, reason);\n+    assert.strictEqual(p, promise);\n+  });\n+  var p = Promise.reject(e);\n+  setImmediate(function() {\n+    Promise.resolve().then(function () {\n+      p.catch(function(){});\n+    });\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(undefined, reason);\n+    assert.strictEqual(p, promise);\n+  });\n+  setImmediate(function() {\n+    Promise.resolve().then(function () {\n+      Promise.resolve().then(function () {\n+        Promise.resolve().then(function () {\n+          Promise.resolve().then(function () {\n+            p.catch(function(){});\n+          });\n+        });\n+      });\n+    });\n+  });\n+  var p = Promise.reject();\n+});\n+\n+asyncTest(function(done) {\n+  onUnhandledSucceed(done, function(reason, promise) {\n+    assert.strictEqual(undefined, reason);\n+    assert.strictEqual(p, promise);\n+  });\n+  var p = Promise.reject();\n+  setImmediate(function() {\n+    Promise.resolve().then(function () {\n+      Promise.resolve().then(function () {\n+        Promise.resolve().then(function () {\n+          Promise.resolve().then(function () {\n+            p.catch(function(){});\n+          });\n+        });\n+      });\n+    });\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  var a = Promise.reject(e);\n+  process.nextTick(function() {\n+    Promise.resolve().then(function() {\n+      process.nextTick(function() {\n+        Promise.resolve().then(function() {\n+          a.catch(function() {});\n+        })\n+      })\n+    })\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var e = new Error();\n+  onUnhandledFail(done);\n+  setImmediate(function() {\n+    var a = Promise.reject(e);\n+    process.nextTick(function() {\n+      Promise.resolve().then(function() {\n+        process.nextTick(function() {\n+          Promise.resolve().then(function() {\n+            a.catch(function() {});\n+          })\n+        })\n+      })\n+    });\n+  });\n+});\n+\n+asyncTest(function(done) {\n+  var d = domain.create();\n+  var domainReceivedError;\n+  d.on('error', function(e) {\n+    domainReceivedError = e;\n+  });\n+  d.run(function() {\n+    var e = new Error('error');\n+    var domainError = new Error('domain error');\n+    onUnhandledSucceed(done, function(reason, promise) {\n+      assert.strictEqual(reason, e);\n+      assert.strictEqual(domainReceivedError, domainError);\n+      d.dispose();\n+    });\n+    var a = Promise.reject(e);\n+    process.nextTick(function() {\n+      throw domainError;\n+    });\n+  });\n+});\n+\n+asyncTest(function(done) {","path":"test/parallel/test-promises-unhandled-rejections.js","position":551,"original_position":551,"commit_id":"483f2d0068764ecffbdfcab02bfd2c846b1394bf","original_commit_id":"483f2d0068764ecffbdfcab02bfd2c846b1394bf","user":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"body":"The tests whether nextTick is immediate scheduled while inside the event handler, if it wasn't, setTimeout would be called before nextTick. The test used to test difference between dates but @vkurchatkin  said this is ok too.","created_at":"2015-02-24T22:55:22Z","updated_at":"2015-02-24T22:55:22Z","html_url":"https://github.com/iojs/io.js/pull/758#discussion_r25302099","pull_request_url":"https://api.github.com/repos/iojs/io.js/pulls/758","_links":{"self":{"href":"https://api.github.com/repos/iojs/io.js/pulls/comments/25302099"},"html":{"href":"https://github.com/iojs/io.js/pull/758#discussion_r25302099"},"pull_request":{"href":"https://api.github.com/repos/iojs/io.js/pulls/758"}}},"pull_request":{"url":"https://api.github.com/repos/iojs/io.js/pulls/758","id":28883503,"html_url":"https://github.com/iojs/io.js/pull/758","diff_url":"https://github.com/iojs/io.js/pull/758.diff","patch_url":"https://github.com/iojs/io.js/pull/758.patch","issue_url":"https://api.github.com/repos/iojs/io.js/issues/758","number":758,"state":"open","locked":false,"title":"Implement unhandled rejection tracking","user":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"body":"Implement unhandled rejection tracking for promises as\r\nspecified in https://gist.github.com/benjamingr/0237932cee84712951a2\r\n\r\nFixes #256\r\n\r\nNote that I did not implement any default action - so errors are still\r\nswallowed by default and many developers are therefore not going\r\nto discover the hooks. My recommendation would be by default\r\nto log the error as `\"Potentially unhandled: \" + error.stack` (and\r\nfor example `\"no stack trace\"` for non-errors).\r\n\r\nThese hooks are enough to implement any kind of error handling scheme, including\r\nlog-on-gc (needs native module I think).\r\n\r\n@Domenic , @rvagg , @vkurchatkin , @benjamingr ,@bnoordhuis\r\n\r\n","created_at":"2015-02-08T17:38:00Z","updated_at":"2015-02-24T22:55:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"391f560940495da26352a8a1f6b121ec6ce5db64","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iojs/io.js/pulls/758/commits","review_comments_url":"https://api.github.com/repos/iojs/io.js/pulls/758/comments","review_comment_url":"https://api.github.com/repos/iojs/io.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/758/comments","statuses_url":"https://api.github.com/repos/iojs/io.js/statuses/483f2d0068764ecffbdfcab02bfd2c846b1394bf","head":{"label":"petkaantonov:unhandled-rejection-tracking","ref":"unhandled-rejection-tracking","sha":"483f2d0068764ecffbdfcab02bfd2c846b1394bf","user":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"repo":{"id":30495325,"name":"io.js","full_name":"petkaantonov/io.js","owner":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/petkaantonov/io.js","description":"A friendly fork of Node.js with an open governance model","fork":true,"url":"https://api.github.com/repos/petkaantonov/io.js","forks_url":"https://api.github.com/repos/petkaantonov/io.js/forks","keys_url":"https://api.github.com/repos/petkaantonov/io.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/petkaantonov/io.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/petkaantonov/io.js/teams","hooks_url":"https://api.github.com/repos/petkaantonov/io.js/hooks","issue_events_url":"https://api.github.com/repos/petkaantonov/io.js/issues/events{/number}","events_url":"https://api.github.com/repos/petkaantonov/io.js/events","assignees_url":"https://api.github.com/repos/petkaantonov/io.js/assignees{/user}","branches_url":"https://api.github.com/repos/petkaantonov/io.js/branches{/branch}","tags_url":"https://api.github.com/repos/petkaantonov/io.js/tags","blobs_url":"https://api.github.com/repos/petkaantonov/io.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/petkaantonov/io.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/petkaantonov/io.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/petkaantonov/io.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/petkaantonov/io.js/statuses/{sha}","languages_url":"https://api.github.com/repos/petkaantonov/io.js/languages","stargazers_url":"https://api.github.com/repos/petkaantonov/io.js/stargazers","contributors_url":"https://api.github.com/repos/petkaantonov/io.js/contributors","subscribers_url":"https://api.github.com/repos/petkaantonov/io.js/subscribers","subscription_url":"https://api.github.com/repos/petkaantonov/io.js/subscription","commits_url":"https://api.github.com/repos/petkaantonov/io.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/petkaantonov/io.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/petkaantonov/io.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/petkaantonov/io.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/petkaantonov/io.js/contents/{+path}","compare_url":"https://api.github.com/repos/petkaantonov/io.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/petkaantonov/io.js/merges","archive_url":"https://api.github.com/repos/petkaantonov/io.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/petkaantonov/io.js/downloads","issues_url":"https://api.github.com/repos/petkaantonov/io.js/issues{/number}","pulls_url":"https://api.github.com/repos/petkaantonov/io.js/pulls{/number}","milestones_url":"https://api.github.com/repos/petkaantonov/io.js/milestones{/number}","notifications_url":"https://api.github.com/repos/petkaantonov/io.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/petkaantonov/io.js/labels{/name}","releases_url":"https://api.github.com/repos/petkaantonov/io.js/releases{/id}","created_at":"2015-02-08T15:30:16Z","updated_at":"2015-02-08T15:30:19Z","pushed_at":"2015-02-24T01:39:38Z","git_url":"git://github.com/petkaantonov/io.js.git","ssh_url":"git@github.com:petkaantonov/io.js.git","clone_url":"https://github.com/petkaantonov/io.js.git","svn_url":"https://github.com/petkaantonov/io.js","homepage":"https://iojs.org","size":119771,"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":"v1.x"}},"base":{"label":"iojs:v1.x","ref":"v1.x","sha":"97b424365a883f3b8de18b3ec3f256307a92ad09","user":{"login":"iojs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/iojs","html_url":"https://github.com/iojs","followers_url":"https://api.github.com/users/iojs/followers","following_url":"https://api.github.com/users/iojs/following{/other_user}","gists_url":"https://api.github.com/users/iojs/gists{/gist_id}","starred_url":"https://api.github.com/users/iojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iojs/subscriptions","organizations_url":"https://api.github.com/users/iojs/orgs","repos_url":"https://api.github.com/users/iojs/repos","events_url":"https://api.github.com/users/iojs/events{/privacy}","received_events_url":"https://api.github.com/users/iojs/received_events","type":"Organization","site_admin":false},"repo":{"id":27193779,"name":"io.js","full_name":"iojs/io.js","owner":{"login":"iojs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/iojs","html_url":"https://github.com/iojs","followers_url":"https://api.github.com/users/iojs/followers","following_url":"https://api.github.com/users/iojs/following{/other_user}","gists_url":"https://api.github.com/users/iojs/gists{/gist_id}","starred_url":"https://api.github.com/users/iojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iojs/subscriptions","organizations_url":"https://api.github.com/users/iojs/orgs","repos_url":"https://api.github.com/users/iojs/repos","events_url":"https://api.github.com/users/iojs/events{/privacy}","received_events_url":"https://api.github.com/users/iojs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iojs/io.js","description":"A friendly fork of Node.js with an open governance model","fork":false,"url":"https://api.github.com/repos/iojs/io.js","forks_url":"https://api.github.com/repos/iojs/io.js/forks","keys_url":"https://api.github.com/repos/iojs/io.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iojs/io.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iojs/io.js/teams","hooks_url":"https://api.github.com/repos/iojs/io.js/hooks","issue_events_url":"https://api.github.com/repos/iojs/io.js/issues/events{/number}","events_url":"https://api.github.com/repos/iojs/io.js/events","assignees_url":"https://api.github.com/repos/iojs/io.js/assignees{/user}","branches_url":"https://api.github.com/repos/iojs/io.js/branches{/branch}","tags_url":"https://api.github.com/repos/iojs/io.js/tags","blobs_url":"https://api.github.com/repos/iojs/io.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iojs/io.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iojs/io.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/iojs/io.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iojs/io.js/statuses/{sha}","languages_url":"https://api.github.com/repos/iojs/io.js/languages","stargazers_url":"https://api.github.com/repos/iojs/io.js/stargazers","contributors_url":"https://api.github.com/repos/iojs/io.js/contributors","subscribers_url":"https://api.github.com/repos/iojs/io.js/subscribers","subscription_url":"https://api.github.com/repos/iojs/io.js/subscription","commits_url":"https://api.github.com/repos/iojs/io.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/iojs/io.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/iojs/io.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/iojs/io.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/iojs/io.js/contents/{+path}","compare_url":"https://api.github.com/repos/iojs/io.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iojs/io.js/merges","archive_url":"https://api.github.com/repos/iojs/io.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iojs/io.js/downloads","issues_url":"https://api.github.com/repos/iojs/io.js/issues{/number}","pulls_url":"https://api.github.com/repos/iojs/io.js/pulls{/number}","milestones_url":"https://api.github.com/repos/iojs/io.js/milestones{/number}","notifications_url":"https://api.github.com/repos/iojs/io.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iojs/io.js/labels{/name}","releases_url":"https://api.github.com/repos/iojs/io.js/releases{/id}","created_at":"2014-11-26T19:57:11Z","updated_at":"2015-02-24T22:38:02Z","pushed_at":"2015-02-24T22:30:20Z","git_url":"git://github.com/iojs/io.js.git","ssh_url":"git@github.com:iojs/io.js.git","clone_url":"https://github.com/iojs/io.js.git","svn_url":"https://github.com/iojs/io.js","homepage":"https://iojs.org","size":151951,"stargazers_count":10508,"watchers_count":10508,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":655,"mirror_url":null,"open_issues_count":179,"forks":655,"open_issues":179,"watchers":10508,"default_branch":"v1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/iojs/io.js/pulls/758"},"html":{"href":"https://github.com/iojs/io.js/pull/758"},"issue":{"href":"https://api.github.com/repos/iojs/io.js/issues/758"},"comments":{"href":"https://api.github.com/repos/iojs/io.js/issues/758/comments"},"review_comments":{"href":"https://api.github.com/repos/iojs/io.js/pulls/758/comments"},"review_comment":{"href":"https://api.github.com/repos/iojs/io.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iojs/io.js/pulls/758/commits"},"statuses":{"href":"https://api.github.com/repos/iojs/io.js/statuses/483f2d0068764ecffbdfcab02bfd2c846b1394bf"}}}}