diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 1082e76be2c240..a4aad4180c550c 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2519,6 +2519,19 @@ Type: Documentation-only Prefer [`response.socket`][] over [`response.connection`] and [`request.socket`][] over [`request.connection`]. + +### DEP0XXX: process._tickCallback + +Type: Documentation-only (supports [`--pending-deprecation`][]) + +The `process._tickCallback` property was never documented as +an officially supported API. + [`--pending-deprecation`]: cli.html#cli_pending_deprecation [`--throw-deprecation`]: cli.html#cli_throw_deprecation [`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index cab2d47c8e3350..ba8fa39a16e6c4 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