code: function Promise(cb, ctx) {
    this.context = ctx;
    this.thenChain = [];
    this.errCb = null;
    this.noErrorCb = null;
    process.nextTick(function() {
      cb();
    });
  }
docs: /*
  Minimal implementation of a promise.