Skip to content

Instantly share code, notes, and snippets.

View pchaussalet's full-sized avatar

Pierre Chaussalet pchaussalet

View GitHub Profile
var B = require("bluebird/js/main/promise")();
var Bproto = B.prototype;
var deferredPrototype = B.pending().constructor.prototype;
deferredPrototype.makeNodeResolver = function() {
return this.asCallback;
};
function bind(fn, ctx) {