Skip to content

Commit

Permalink
crypto: assign missing deprecation code
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Sep 12, 2018
1 parent 711445b commit 3459213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2184,8 +2184,8 @@ The [Legacy URL API][] is deprecated. This includes [`url.format()`][],
[`url.parse()`][], [`url.resolve()`][], and the [legacy `urlObject`][]. Please
use the [WHATWG URL API][] instead.
<a id="DEP00XX"></a>
### DEP00XX: Native crypto handles
<a id="DEP0117"></a>
### DEP0117: Native crypto handles
<!-- YAML
changes:
- version: REPLACEME
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/crypto/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ function legacyNativeHandle(obj, handle) {
Object.defineProperty(obj, '_handle', {
get: deprecate(() => handle,
`${obj.constructor.name}._handle is deprecated. Use the ` +
'public API instead.', 'DEP00XX'),
'public API instead.', 'DEP0117'),
set: deprecate((h) => obj[kHandle] = handle = h,
`${obj.constructor.name}._handle is deprecated. Use the ` +
'public API instead.', 'DEP00XX'),
'public API instead.', 'DEP0117'),
enumerable: false
});
}
Expand Down

0 comments on commit 3459213

Please sign in to comment.