@@ -780,6 +780,8 @@ E('ERR_INVALID_PROTOCOL',
780780 TypeError ) ;
781781E ( 'ERR_INVALID_REPL_EVAL_CONFIG' ,
782782 'Cannot specify both "breakEvalOnSigint" and "eval" for REPL' , TypeError ) ;
783+ E ( 'ERR_INVALID_REPL_TYPE' ,
784+ 'Cannot specify --type for REPL' , TypeError ) ;
783785E ( 'ERR_INVALID_RETURN_PROPERTY' , ( input , name , prop , value ) => {
784786 return `Expected a valid ${ input } to be returned for the "${ prop } " from the` +
785787 ` "${ name } " function but got ${ value } .` ;
@@ -810,6 +812,11 @@ E('ERR_INVALID_SYNC_FORK_INPUT',
810812 TypeError ) ;
811813E ( 'ERR_INVALID_THIS' , 'Value of "this" must be of type %s' , TypeError ) ;
812814E ( 'ERR_INVALID_TUPLE' , '%s must be an iterable %s tuple' , TypeError ) ;
815+ E ( 'ERR_INVALID_TYPE_EXTENSION' , '%s extension is not supported for --type=%s' ,
816+ TypeError ) ;
817+ E ( 'ERR_INVALID_TYPE_FLAG' ,
818+ 'Type flag must be one of "esm", "commonjs". Received --type=%s' ,
819+ TypeError ) ;
813820E ( 'ERR_INVALID_URI' , 'URI malformed' , URIError ) ;
814821E ( 'ERR_INVALID_URL' , 'Invalid URL: %s' , TypeError ) ;
815822E ( 'ERR_INVALID_URL_SCHEME' ,
@@ -964,12 +971,10 @@ E('ERR_UNHANDLED_ERROR',
964971// This should probably be a `TypeError`.
965972E ( 'ERR_UNKNOWN_CREDENTIAL' , '%s identifier does not exist: %s' , Error ) ;
966973E ( 'ERR_UNKNOWN_ENCODING' , 'Unknown encoding: %s' , TypeError ) ;
967-
974+ E ( 'ERR_UNKNOWN_FILE_EXTENSION' , 'Unknown file extension: %s' , TypeError ) ;
968975// This should probably be a `TypeError`.
969976E ( 'ERR_UNKNOWN_MODULE_FORMAT' , 'Unknown module format: %s' , RangeError ) ;
970977E ( 'ERR_UNKNOWN_SIGNAL' , 'Unknown signal: %s' , TypeError ) ;
971- E ( 'ERR_UNSUPPORTED_FILE_EXTENSION' , 'Unsupported file extension: \'%s\' ' +
972- 'imported from %s' , Error ) ;
973978
974979E ( 'ERR_V8BREAKITERATOR' ,
975980 'Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl' ,
0 commit comments