Make native client password property consistent with others

i.e. configurable.
This commit is contained in:
Charmander 2020-01-30 04:58:29 -08:00
parent c26caa80d2
commit 94fbb24f94

View File

@ -46,11 +46,11 @@ var Client = module.exports = function (config) {
// "hiding" the password so it doesn't show up in stack traces
// or if the client is console.logged
const hiddenPassword = cp.password
Object.defineProperty(this, 'password', {
configurable: true,
enumerable: false,
writable: true,
value: hiddenPassword
value: cp.password
})
this.database = cp.database
this.host = cp.host