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