File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ Hash.prototype.digest = function (enc) {
64
64
this . _block . writeUInt32BE ( ll , this . _blockSize - 4 )
65
65
}
66
66
67
- var hash = this . _update ( this . _block ) || this . _hash ( )
67
+ this . _update ( this . _block )
68
+ var hash = this . _hash ( )
68
69
69
70
return enc ? hash . toString ( enc ) : hash
70
71
}
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ var long = {
43
43
44
44
function makeTest ( name , data ) {
45
45
tape ( name , function ( t ) {
46
-
47
46
var h = new Hash ( 16 , 8 )
48
47
var hash = new Buffer ( 20 )
49
48
var n = 2
@@ -57,7 +56,8 @@ function makeTest (name, data) {
57
56
if ( n < 0 ) {
58
57
throw new Error ( 'expecting only 2 calls to _update' )
59
58
}
60
-
59
+ }
60
+ h . _hash = function ( ) {
61
61
return hash
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments