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 @@ -215,8 +215,6 @@ class URL {
215
215
throw new TypeError ( 'Value of `this` is not a URL' ) ;
216
216
}
217
217
218
- const ctx = this [ context ] ;
219
-
220
218
if ( typeof depth === 'number' && depth < 0 )
221
219
return opts . stylize ( '[Object]' , 'special' ) ;
222
220
@@ -230,8 +228,7 @@ class URL {
230
228
obj . origin = this . origin ;
231
229
obj . protocol = this . protocol ;
232
230
obj . username = this . username ;
233
- obj . password = ( opts . showHidden || ctx . password === '' ) ?
234
- this . password : '--------' ;
231
+ obj . password = this . password ;
235
232
obj . host = this . host ;
236
233
obj . hostname = this . hostname ;
237
234
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