diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-04-25 11:21:26 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 11:21:26 +0900 |
commit | 63befe9377fcf688415633df76184fac5fe4ef73 (patch) | |
tree | 7ff474a80360c84e02224136ac349bf12734bb3f /ext/node/polyfills/internal/crypto/hash.ts | |
parent | 5b4a9b48aeabded174cc161bfdafb6529cffbca1 (diff) |
fix(ext/node): fix hash.flush (#18818)
Diffstat (limited to 'ext/node/polyfills/internal/crypto/hash.ts')
-rw-r--r-- | ext/node/polyfills/internal/crypto/hash.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/crypto/hash.ts b/ext/node/polyfills/internal/crypto/hash.ts index 00dfa19af..34e3c1230 100644 --- a/ext/node/polyfills/internal/crypto/hash.ts +++ b/ext/node/polyfills/internal/crypto/hash.ts @@ -66,7 +66,7 @@ export class Hash extends Transform { callback(); }, flush(callback: () => void) { - this.push(context.digest(undefined)); + this.push(this.digest(undefined)); callback(); }, }); |