From 63befe9377fcf688415633df76184fac5fe4ef73 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 25 Apr 2023 11:21:26 +0900 Subject: fix(ext/node): fix hash.flush (#18818) --- ext/node/polyfills/internal/crypto/hash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/node/polyfills/internal/crypto') 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(); }, }); -- cgit v1.2.3