File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class TupleOrigin {
7777 return result ;
7878 }
7979
80- inspect ( ) {
80+ [ util . inspect . custom ] ( ) {
8181 return `TupleOrigin {
8282 scheme: ${ this [ kScheme ] } ,
8383 host: ${ this [ kHost ] } ,
@@ -235,7 +235,7 @@ class URL {
235235 return ( this [ context ] . flags & binding . URL_FLAGS_CANNOT_BE_BASE ) !== 0 ;
236236 }
237237
238- inspect ( depth , opts ) {
238+ [ util . inspect . custom ] ( depth , opts ) {
239239 const ctx = this [ context ] ;
240240 var ret = 'URL {\n' ;
241241 ret += ` href: ${ this . href } \n` ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
33const common = require ( '../common' ) ;
4+ const util = require ( 'util' ) ;
45
56if ( ! common . hasIntl ) {
67 // A handful of the tests fail when ICU is not included.
@@ -144,8 +145,8 @@ for (const test of allTests) {
144145 const url = test . url ? new URL ( test . url ) : new URL ( test . input , test . base ) ;
145146
146147 for ( const showHidden of [ true , false ] ) {
147- const res = url . inspect ( null , {
148- showHidden : showHidden
148+ const res = util . inspect ( url , {
149+ showHidden
149150 } ) ;
150151
151152 const lines = res . split ( '\n' ) ;
You can’t perform that action at this time.
0 commit comments