From 83418b593f154aab704c7aa198b3c8cc1b974ed3 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Mon, 30 Sep 2019 13:56:26 -0400 Subject: doc: add documentation deprecation for process._tickCallback This change also supports --pending-deprecation for the new deprecation. PR-URL: https://github.com/nodejs/node/pull/29781 Reviewed-By: James M Snell Reviewed-By: Benjamin Gruenbaum Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater --- lib/internal/bootstrap/pre_execution.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index cab2d47c8e..ba8fa39a16 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -271,6 +271,10 @@ function initializeDeprecations() { process.binding = deprecate(process.binding, 'process.binding() is deprecated. ' + 'Please use public APIs instead.', 'DEP0111'); + + process._tickCallback = deprecate(process._tickCallback, + 'process._tickCallback() is deprecated', + 'DEP0XXX'); } // Create global.process and global.Buffer as getters so that we have a -- cgit v1.2.3