File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -967,18 +967,14 @@ common.expectsError(
967967 message : 'argument must be a buffer'
968968 } ) ;
969969
970- const regErrorMsg =
971- new RegExp ( 'The first argument must be one of type string, Buffer, ' +
972- 'ArrayBuffer, Array, or Array-like Object\\.' ) ;
973-
974970assert . throws ( ( ) => Buffer . from ( ) , {
975971 name : 'TypeError [ERR_INVALID_ARG_TYPE]' ,
976- message : 'The first argument must be one of type string, Buffer, ' +
972+ message : 'The first argument must be one of type string, Buffer, ' +
977973 'ArrayBuffer, Array, or Array-like Object. Received type undefined'
978974} ) ;
979975assert . throws ( ( ) => Buffer . from ( null ) , {
980976 name : 'TypeError [ERR_INVALID_ARG_TYPE]' ,
981- message : 'The first argument must be one of type string, Buffer, ' +
977+ message : 'The first argument must be one of type string, Buffer, ' +
982978 'ArrayBuffer, Array, or Array-like Object. Received type object'
983979} ) ;
984980
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ assert.throws(function() {
4343} , {
4444 code : 'ERR_INVALID_ARG_TYPE' ,
4545 name : 'TypeError [ERR_INVALID_ARG_TYPE]' ,
46- message : 'The first argument must be one of type string, Buffer,' +
46+ message : 'The first argument must be one of type string, Buffer,' +
4747 ' ArrayBuffer, Array, or Array-like Object. Received type object'
4848} ) ;
4949
You can’t perform that action at this time.
0 commit comments