@@ -398,7 +398,7 @@ RedisClient.prototype.subscribe = RedisClient.prototype.SUBSCRIBE = function sub
398
398
callback ,
399
399
i = 0 ;
400
400
if ( Array . isArray ( arguments [ 0 ] ) ) {
401
- arr = arguments [ 0 ] ;
401
+ arr = arguments [ 0 ] . slice ( 0 ) ;
402
402
callback = arguments [ 1 ] ;
403
403
} else {
404
404
len = arguments . length ;
@@ -425,7 +425,7 @@ Multi.prototype.subscribe = Multi.prototype.SUBSCRIBE = function subscribe () {
425
425
callback ,
426
426
i = 0 ;
427
427
if ( Array . isArray ( arguments [ 0 ] ) ) {
428
- arr = arguments [ 0 ] ;
428
+ arr = arguments [ 0 ] . slice ( 0 ) ;
429
429
callback = arguments [ 1 ] ;
430
430
} else {
431
431
len = arguments . length ;
@@ -453,7 +453,7 @@ RedisClient.prototype.unsubscribe = RedisClient.prototype.UNSUBSCRIBE = function
453
453
callback ,
454
454
i = 0 ;
455
455
if ( Array . isArray ( arguments [ 0 ] ) ) {
456
- arr = arguments [ 0 ] ;
456
+ arr = arguments [ 0 ] . slice ( 0 ) ;
457
457
callback = arguments [ 1 ] ;
458
458
} else {
459
459
len = arguments . length ;
@@ -481,7 +481,7 @@ Multi.prototype.unsubscribe = Multi.prototype.UNSUBSCRIBE = function unsubscribe
481
481
callback ,
482
482
i = 0 ;
483
483
if ( Array . isArray ( arguments [ 0 ] ) ) {
484
- arr = arguments [ 0 ] ;
484
+ arr = arguments [ 0 ] . slice ( 0 ) ;
485
485
callback = arguments [ 1 ] ;
486
486
} else {
487
487
len = arguments . length ;
@@ -510,7 +510,7 @@ RedisClient.prototype.psubscribe = RedisClient.prototype.PSUBSCRIBE = function p
510
510
callback ,
511
511
i = 0 ;
512
512
if ( Array . isArray ( arguments [ 0 ] ) ) {
513
- arr = arguments [ 0 ] ;
513
+ arr = arguments [ 0 ] . slice ( 0 ) ;
514
514
callback = arguments [ 1 ] ;
515
515
} else {
516
516
len = arguments . length ;
@@ -537,7 +537,7 @@ Multi.prototype.psubscribe = Multi.prototype.PSUBSCRIBE = function psubscribe ()
537
537
callback ,
538
538
i = 0 ;
539
539
if ( Array . isArray ( arguments [ 0 ] ) ) {
540
- arr = arguments [ 0 ] ;
540
+ arr = arguments [ 0 ] . slice ( 0 ) ;
541
541
callback = arguments [ 1 ] ;
542
542
} else {
543
543
len = arguments . length ;
@@ -565,7 +565,7 @@ RedisClient.prototype.punsubscribe = RedisClient.prototype.PUNSUBSCRIBE = functi
565
565
callback ,
566
566
i = 0 ;
567
567
if ( Array . isArray ( arguments [ 0 ] ) ) {
568
- arr = arguments [ 0 ] ;
568
+ arr = arguments [ 0 ] . slice ( 0 ) ;
569
569
callback = arguments [ 1 ] ;
570
570
} else {
571
571
len = arguments . length ;
@@ -593,7 +593,7 @@ Multi.prototype.punsubscribe = Multi.prototype.PUNSUBSCRIBE = function punsubscr
593
593
callback ,
594
594
i = 0 ;
595
595
if ( Array . isArray ( arguments [ 0 ] ) ) {
596
- arr = arguments [ 0 ] ;
596
+ arr = arguments [ 0 ] . slice ( 0 ) ;
597
597
callback = arguments [ 1 ] ;
598
598
} else {
599
599
len = arguments . length ;
0 commit comments