1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Fix individual createClient functions passing undefined options to a new instance. Closes #893

This commit is contained in:
Ruben Bridgewater
2015-10-18 16:58:34 +02:00
parent ce4a67bb74
commit 304abe4318
3 changed files with 18 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ parsers.push(require('./lib/parsers/javascript'));
function RedisClient(stream, options) {
// Copy the options so they are not mutated
options = JSON.parse(JSON.stringify(options));
options = JSON.parse(JSON.stringify(options || {}));
var self = this;
if (!stream.cork) {