From 5de3cf099cd01c84d1809dab90c041b76aa58d8e Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 4 Dec 2016 12:47:01 -0800 Subject: 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 Reviewed-By: Michal Zasso Reviewed-By: Fedor Indutny --- lib/sys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sys.js') diff --git a/lib/sys.js b/lib/sys.js index c94b032c64..4d7d305daa 100644 --- a/lib/sys.js +++ b/lib/sys.js @@ -6,4 +6,4 @@ module.exports = require('util'); process.emitWarning('sys is deprecated. Use util instead.', - 'DeprecationWarning'); + 'DeprecationWarning', 'DEP0025'); -- cgit v1.2.3