We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79fefdf + f36b2be commit 1266572Copy full SHA for 1266572
promise.js
@@ -281,14 +281,15 @@ function PromisePool(pool, Promise) {
281
util.inherits(PromisePool, EventEmitter);
282
283
PromisePool.prototype.getConnection = function() {
284
+ var self = this;
285
var corePool = this.pool;
286
287
return new this.Promise(function(resolve, reject) {
288
corePool.getConnection(function(err, coreConnection) {
289
if (err) {
290
reject(err);
291
} else {
- resolve(new PromiseConnection(coreConnection, Promise));
292
+ resolve(new PromiseConnection(coreConnection, self.Promise));
293
}
294
});
295
0 commit comments