@@ -3,7 +3,7 @@ var testCases = {
33 { length : 256 , expected : algorithms [ "HKDF" ] . derivation } ,
44 { length : 384 , expected : algorithms [ "HKDF" ] . derivation384 } ,
55 { length : 230 , expected : undefined } , // should throw an exception, not multiple of 8
6- { length : 0 , expected : undefined } , // explicitly disallowed, so should throw
6+ { length : 0 , expected : emptyArray } ,
77 { length : null , expected : undefined } , // should throw an exception
88 { length : undefined , expected : undefined } , // should throw an exception
99 { length : "omitted" , expected : undefined } , // default value is null, so should throw
@@ -12,7 +12,7 @@ var testCases = {
1212 { length : 256 , expected : algorithms [ "PBKDF2" ] . derivation } ,
1313 { length : 384 , expected : algorithms [ "PBKDF2" ] . derivation384 } ,
1414 { length : 230 , expected : undefined } , // should throw an exception, not multiple of 8
15- { length : 0 , expected : undefined } , // explicitly disallowed, so should throw
15+ { length : 0 , expected : emptyArray } ,
1616 { length : null , expected : undefined } , // should throw an exception
1717 { length : undefined , expected : undefined } , // should throw an exception
1818 { length : "omitted" , expected : undefined } , // default value is null, so should throw
0 commit comments