File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4564,7 +4564,7 @@ removed in a future version of Node.js.
45644564changes:
45654565 - version: REPLACEME
45664566 pr-url: https://github.com/nodejs/node/pull/XXXXX
4567- description: Runtime deprecation.
4567+ description: Documentation-only deprecation.
45684568-->
45694569
45704570Type: Runtime
Original file line number Diff line number Diff line change @@ -87,13 +87,6 @@ const maybeEmitDeprecationWarning = getDeprecationWarningEmitter(
8787 } ,
8888) ;
8989
90- const emitHmacDoubleDigestDeprecation = getDeprecationWarningEmitter (
91- 'DEP0206' ,
92- 'Calling digest() on an already-finalized Hmac instance is deprecated.' ,
93- undefined ,
94- false ,
95- ) ;
96-
9790function Hash ( algorithm , options ) {
9891 if ( ! new . target )
9992 return new Hash ( algorithm , options ) ;
@@ -190,7 +183,6 @@ Hmac.prototype.digest = function digest(outputEncoding) {
190183 const state = this [ kState ] ;
191184
192185 if ( state [ kFinalized ] ) {
193- emitHmacDoubleDigestDeprecation ( ) ;
194186 const buf = Buffer . from ( '' ) ;
195187 if ( outputEncoding && outputEncoding !== 'buffer' )
196188 return buf . toString ( outputEncoding ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments