var promiseCallback = function(functionName, params) {
  var self = this;
  params = Array.prototype.slice.call(params, 0);
  return new Promise(function(resolve, reject) {
    params.push(function(err) {
      var args = Array.prototype.slice.call(arguments, 1);
      if (err) {
        return reject(err);
      }

      return resolve.apply(this, args);
    });

    self[functionName].apply(self, params);
  });
};

module.exports = {
  promiseCallback: promiseCallback,
};

@@ -1,12 +1,48 @@
+var Promise = require('bluebird');%0A%0A
 var promiseC

Fix build on Node.js v0.10.x (#12)