@@ -68,7 +68,7 @@ function validateAssertions(url, format,
6868 if ( ! ObjectPrototypeHasOwnProperty ( importAssertions , 'type' ) ) {
6969 return true ;
7070 }
71- return handleInvalidType ( url , importAssertions . type ) ;
71+ return createHandleInvalidTypeError ( url , importAssertions . type ) ;
7272
7373 case importAssertions . type :
7474 // The asserted type is the valid type for this format.
@@ -81,7 +81,7 @@ function validateAssertions(url, format,
8181 // `type` wasn't specified at all.
8282 throw new ERR_IMPORT_ASSERTION_TYPE_MISSING ( url , validType ) ;
8383 }
84- return handleInvalidType ( url , importAssertions . type ) ;
84+ return createHandleInvalidTypeError ( url , importAssertions . type ) ;
8585 }
8686}
8787
@@ -90,7 +90,7 @@ function validateAssertions(url, format,
9090 * @param {string } url The resolved URL for the module to be imported
9191 * @param {string } type The value of the import assertion `type` property
9292 */
93- function handleInvalidType ( url , type ) {
93+ function createHandleInvalidTypeError ( url , type ) {
9494 // `type` might have not been a string.
9595 validateString ( type , 'type' ) ;
9696
0 commit comments