File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1308,11 +1308,10 @@ E('ERR_INVALID_CURSOR_POS',
13081308E ( 'ERR_INVALID_FD' ,
13091309 '"fd" must be a positive integer: %s' , RangeError ) ;
13101310E ( 'ERR_INVALID_FD_TYPE' , 'Unsupported fd type: %s' , TypeError ) ;
1311- E ( 'ERR_INVALID_FILE_URL_HOST' , ( url , platform , base ) => {
1312- let msg = `File URL host in ${ url } ` ;
1313- if ( base ) { msg += ` from ${ base } ` ; }
1314- msg += ` must be "localhost" or empty on ${ platform } ` ;
1315- return msg ;
1311+ E ( 'ERR_INVALID_FILE_URL_HOST' , function ( url , platform , base ) {
1312+ this . input = url . href ;
1313+ this . module = base ;
1314+ return `File URL host must be "localhost" or empty on ${ platform } ` ;
13161315} , TypeError ) ;
13171316E ( 'ERR_INVALID_FILE_URL_PATH' , 'File URL path %s' , TypeError ) ;
13181317E ( 'ERR_INVALID_HANDLE_TYPE' , 'This handle type cannot be sent' , TypeError ) ;
You can’t perform that action at this time.
0 commit comments