summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2018-09-12 22:54:43 +0200
committerTobias Nießen <tniessen@tnie.de>2018-09-13 01:08:59 +0200
commit360465dfe213aaf56cb81e1610d91aab2d53cf34 (patch)
tree054fa7561726e265c2a71128bfc15e78250b1a29
parent79d2536493929bd2b8924a1f7c57323b0544c465 (diff)
downloadandroid-node-v8-360465dfe213aaf56cb81e1610d91aab2d53cf34.tar.gz
android-node-v8-360465dfe213aaf56cb81e1610d91aab2d53cf34.tar.bz2
android-node-v8-360465dfe213aaf56cb81e1610d91aab2d53cf34.zip
crypto: assign missing deprecation code
PR-URL: https://github.com/nodejs/node/pull/22827 Refs: https://github.com/nodejs/node/pull/22747 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r--doc/api/deprecations.md4
-rw-r--r--lib/internal/crypto/util.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md
index 9c983319d3..4eb094f7ad 100644
--- a/doc/api/deprecations.md
+++ b/doc/api/deprecations.md
@@ -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
diff --git a/lib/internal/crypto/util.js b/lib/internal/crypto/util.js
index 7ff25be186..6549f63430 100644
--- a/lib/internal/crypto/util.js
+++ b/lib/internal/crypto/util.js
@@ -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
});
}