diff options
author | James M Snell <jasnell@gmail.com> | 2016-12-04 12:47:01 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-01-30 11:11:57 -0800 |
commit | 5de3cf099cd01c84d1809dab90c041b76aa58d8e (patch) | |
tree | 91b2e748d3050058167c69daaf29b0a57245bec1 /lib/internal/cluster/worker.js | |
parent | 03e89b3ff298c63e9620f1547094f7fca76edde7 (diff) | |
download | android-node-v8-5de3cf099cd01c84d1809dab90c041b76aa58d8e.tar.gz android-node-v8-5de3cf099cd01c84d1809dab90c041b76aa58d8e.tar.bz2 android-node-v8-5de3cf099cd01c84d1809dab90c041b76aa58d8e.zip |
lib: add static identifier codes for all deprecations
Assigns a static identifier code to all runtime and documentation
only deprecations. The identifier code is included in the emitted
DeprecationWarning.
Also adds a deprecations.md to the API docs to provide a central
location where deprecation codes can be referenced and explained.
PR-URL: https://github.com/nodejs/node/pull/10116
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Michal Zasso <targos@protonmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Diffstat (limited to 'lib/internal/cluster/worker.js')
-rw-r--r-- | lib/internal/cluster/worker.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/cluster/worker.js b/lib/internal/cluster/worker.js index fd46ed5710..687e4c12fe 100644 --- a/lib/internal/cluster/worker.js +++ b/lib/internal/cluster/worker.js @@ -23,10 +23,10 @@ function Worker(options) { defineProperty(this, 'suicide', { get: internalUtil.deprecate( () => this.exitedAfterDisconnect, - suicideDeprecationMessage), + suicideDeprecationMessage, 'DEP0007'), set: internalUtil.deprecate( (val) => { this.exitedAfterDisconnect = val; }, - suicideDeprecationMessage), + suicideDeprecationMessage, 'DEP0007'), enumerable: true }); |