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.
1 parent 8cd97ec commit f36b2beCopy full SHA for f36b2be
promise.js
@@ -272,14 +272,15 @@ function PromisePool(pool, Promise) {
272
util.inherits(PromisePool, EventEmitter);
273
274
PromisePool.prototype.getConnection = function() {
275
+ var self = this;
276
var corePool = this.pool;
277
278
return new this.Promise(function(resolve, reject) {
279
corePool.getConnection(function(err, coreConnection) {
280
if (err) {
281
reject(err);
282
} else {
- resolve(new PromiseConnection(coreConnection, Promise));
283
+ resolve(new PromiseConnection(coreConnection, self.Promise));
284
}
285
});
286
0 commit comments