File tree 3 files changed +6
-8
lines changed
3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ class Pool extends EventEmitter {
67
67
Object . defineProperty ( this . options , 'password' , {
68
68
configurable : true ,
69
69
enumerable : false ,
70
- value : options . password ,
71
- writable : true
70
+ writable : true ,
71
+ value : options . password
72
72
} )
73
73
}
74
74
Original file line number Diff line number Diff line change @@ -33,12 +33,11 @@ var Client = function (config) {
33
33
34
34
// "hiding" the password so it doesn't show up in stack traces
35
35
// or if the client is console.logged
36
- const password = this . connectionParameters . password
37
36
Object . defineProperty ( this , 'password' , {
37
+ configurable : true ,
38
38
enumerable : false ,
39
- configurable : false ,
40
39
writable : true ,
41
- value : password
40
+ value : this . connectionParameters . password
42
41
} )
43
42
44
43
this . replication = this . connectionParameters . replication
Original file line number Diff line number Diff line change @@ -57,12 +57,11 @@ var ConnectionParameters = function (config) {
57
57
58
58
// "hiding" the password so it doesn't show up in stack traces
59
59
// or if the client is console.logged
60
- const password = val ( 'password' , config )
61
60
Object . defineProperty ( this , 'password' , {
61
+ configurable : true ,
62
62
enumerable : false ,
63
- configurable : false ,
64
63
writable : true ,
65
- value : password
64
+ value : val ( ' password' , config )
66
65
} )
67
66
68
67
this . binary = val ( 'binary' , config )
You can’t perform that action at this time.
0 commit comments