@@ -780,6 +780,8 @@ E('ERR_INVALID_PROTOCOL',
780
780
TypeError ) ;
781
781
E ( 'ERR_INVALID_REPL_EVAL_CONFIG' ,
782
782
'Cannot specify both "breakEvalOnSigint" and "eval" for REPL' , TypeError ) ;
783
+ E ( 'ERR_INVALID_REPL_TYPE' ,
784
+ 'Cannot specify --type for REPL' , TypeError ) ;
783
785
E ( 'ERR_INVALID_RETURN_PROPERTY' , ( input , name , prop , value ) => {
784
786
return `Expected a valid ${ input } to be returned for the "${ prop } " from the` +
785
787
` "${ name } " function but got ${ value } .` ;
@@ -810,6 +812,11 @@ E('ERR_INVALID_SYNC_FORK_INPUT',
810
812
TypeError ) ;
811
813
E ( 'ERR_INVALID_THIS' , 'Value of "this" must be of type %s' , TypeError ) ;
812
814
E ( '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 ) ;
813
820
E ( 'ERR_INVALID_URI' , 'URI malformed' , URIError ) ;
814
821
E ( 'ERR_INVALID_URL' , 'Invalid URL: %s' , TypeError ) ;
815
822
E ( 'ERR_INVALID_URL_SCHEME' ,
@@ -964,12 +971,10 @@ E('ERR_UNHANDLED_ERROR',
964
971
// This should probably be a `TypeError`.
965
972
E ( 'ERR_UNKNOWN_CREDENTIAL' , '%s identifier does not exist: %s' , Error ) ;
966
973
E ( 'ERR_UNKNOWN_ENCODING' , 'Unknown encoding: %s' , TypeError ) ;
967
-
974
+ E ( 'ERR_UNKNOWN_FILE_EXTENSION' , 'Unknown file extension: %s' , TypeError ) ;
968
975
// This should probably be a `TypeError`.
969
976
E ( 'ERR_UNKNOWN_MODULE_FORMAT' , 'Unknown module format: %s' , RangeError ) ;
970
977
E ( 'ERR_UNKNOWN_SIGNAL' , 'Unknown signal: %s' , TypeError ) ;
971
- E ( 'ERR_UNSUPPORTED_FILE_EXTENSION' , 'Unsupported file extension: \'%s\' ' +
972
- 'imported from %s' , Error ) ;
973
978
974
979
E ( 'ERR_V8BREAKITERATOR' ,
975
980
'Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl' ,
0 commit comments