Skip to content

Commit 360465d

Browse files
committed
crypto: assign missing deprecation code
PR-URL: #22827 Refs: #22747 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 79d2536 commit 360465d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/api/deprecations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2184,8 +2184,8 @@ The [Legacy URL API][] is deprecated. This includes [`url.format()`][],
21842184
[`url.parse()`][], [`url.resolve()`][], and the [legacy `urlObject`][]. Please
21852185
use the [WHATWG URL API][] instead.
21862186
2187-
<a id="DEP00XX"></a>
2188-
### DEP00XX: Native crypto handles
2187+
<a id="DEP0117"></a>
2188+
### DEP0117: Native crypto handles
21892189
<!-- YAML
21902190
changes:
21912191
- version: REPLACEME

lib/internal/crypto/util.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ function legacyNativeHandle(obj, handle) {
3636
Object.defineProperty(obj, '_handle', {
3737
get: deprecate(() => handle,
3838
`${obj.constructor.name}._handle is deprecated. Use the ` +
39-
'public API instead.', 'DEP00XX'),
39+
'public API instead.', 'DEP0117'),
4040
set: deprecate((h) => obj[kHandle] = handle = h,
4141
`${obj.constructor.name}._handle is deprecated. Use the ` +
42-
'public API instead.', 'DEP00XX'),
42+
'public API instead.', 'DEP0117'),
4343
enumerable: false
4444
});
4545
}

0 commit comments

Comments
 (0)