File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -201,28 +201,6 @@ assert.throws(function() {
201201 }
202202} ) ;
203203
204- assert . throws ( function ( ) {
205- crypto . createSign ( 'SHA1' ) . update ( '0' , 'hex' ) ;
206- } , ( err ) => {
207- // Throws TypeError, so there is no opensslErrorStack property.
208- if ( ( err instanceof Error ) &&
209- / ^ T y p e E r r o r : B a d i n p u t s t r i n g $ / . test ( err ) &&
210- err . opensslErrorStack === undefined ) {
211- return true ;
212- }
213- } ) ;
214-
215- assert . throws ( function ( ) {
216- crypto . createVerify ( 'SHA1' ) . update ( '0' , 'hex' ) ;
217- } , ( err ) => {
218- // Throws TypeError, so there is no opensslErrorStack property.
219- if ( ( err instanceof Error ) &&
220- / ^ T y p e E r r o r : B a d i n p u t s t r i n g $ / . test ( err ) &&
221- err . opensslErrorStack === undefined ) {
222- return true ;
223- }
224- } ) ;
225-
226204assert . throws ( function ( ) {
227205 const priv = [
228206 '-----BEGIN RSA PRIVATE KEY-----' ,
You can’t perform that action at this time.
0 commit comments