@@ -34,7 +34,7 @@ const {
3434} = require ( 'internal/errors' ) . codes ;
3535const { exitCodes : { kUnfinishedTopLevelAwait } } = internalBinding ( 'errors' ) ;
3636const { URL } = require ( 'internal/url' ) ;
37- const { canParse : urlCanParse } = internalBinding ( 'url' ) ;
37+ const { canParse : URLCanParse } = internalBinding ( 'url' ) ;
3838const { receiveMessageOnPort } = require ( 'worker_threads' ) ;
3939const {
4040 isAnyArrayBuffer,
@@ -274,7 +274,7 @@ class Hooks {
274274 // Avoid expensive URL instantiation for known-good URLs
275275 if ( ! this . #validatedUrls. has ( url ) ) {
276276 // No need to convert to string, since the type is already validated
277- if ( ! urlCanParse ( url ) ) {
277+ if ( ! URLCanParse ( url ) ) {
278278 throw new ERR_INVALID_RETURN_PROPERTY_VALUE (
279279 'a URL string' ,
280280 hookErrIdentifier ,
@@ -354,7 +354,7 @@ class Hooks {
354354 // Avoid expensive URL instantiation for known-good URLs
355355 if ( ! this . #validatedUrls. has ( nextUrl ) ) {
356356 // No need to convert to string, since the type is already validated
357- if ( ! urlCanParse ( nextUrl ) ) {
357+ if ( ! URLCanParse ( nextUrl ) ) {
358358 throw new ERR_INVALID_ARG_VALUE (
359359 `${ hookErrIdentifier } url` ,
360360 nextUrl ,
0 commit comments