File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,6 @@ class URL {
206
206
throw new errors . TypeError ( 'ERR_INVALID_THIS' , 'URL' ) ;
207
207
}
208
208
209
- const ctx = this [ context ] ;
210
-
211
209
if ( typeof depth === 'number' && depth < 0 )
212
210
return opts . stylize ( '[Object]' , 'special' ) ;
213
211
@@ -221,8 +219,7 @@ class URL {
221
219
obj . origin = this . origin ;
222
220
obj . protocol = this . protocol ;
223
221
obj . username = this . username ;
224
- obj . password = ( opts . showHidden || ctx . password === '' ) ?
225
- this . password : '--------' ;
222
+ obj . password = this . password ;
226
223
obj . host = this . host ;
227
224
obj . hostname = this . hostname ;
228
225
obj . port = this . port ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ assert.strictEqual(
21
21
origin: 'https://host.name:8080',
22
22
protocol: 'https:',
23
23
username: 'username',
24
- password: '-------- ',
24
+ password: 'password ',
25
25
host: 'host.name:8080',
26
26
hostname: 'host.name',
27
27
port: '8080',
You can’t perform that action at this time.
0 commit comments