@@ -3,7 +3,7 @@ var testCases = {
3
3
{ length : 256 , expected : algorithms [ "HKDF" ] . derivation } ,
4
4
{ length : 384 , expected : algorithms [ "HKDF" ] . derivation384 } ,
5
5
{ 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 } ,
7
7
{ length : null , expected : undefined } , // should throw an exception
8
8
{ length : undefined , expected : undefined } , // should throw an exception
9
9
{ length : "omitted" , expected : undefined } , // default value is null, so should throw
@@ -12,7 +12,7 @@ var testCases = {
12
12
{ length : 256 , expected : algorithms [ "PBKDF2" ] . derivation } ,
13
13
{ length : 384 , expected : algorithms [ "PBKDF2" ] . derivation384 } ,
14
14
{ 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 } ,
16
16
{ length : null , expected : undefined } , // should throw an exception
17
17
{ length : undefined , expected : undefined } , // should throw an exception
18
18
{ length : "omitted" , expected : undefined } , // default value is null, so should throw
0 commit comments