From 3054f1b8ce8f2605c8a8ea3a61233465ae0e7ed5 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 2 Mar 2021 07:48:07 -0800 Subject: [PATCH] fixup! lib: runtime deprecate access to process.binding('async_wrap') --- doc/api/async_hooks.md | 12 ------------ lib/async_hooks.js | 2 -- lib/internal/async_hooks.js | 3 --- 3 files changed, 17 deletions(-) diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index 01c4c75d173923..9e30f3481aa195 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -176,18 +176,6 @@ provided by AsyncHooks itself. The logging should then be skipped when it was the logging itself that caused AsyncHooks callback to call. By doing this the otherwise infinite recursion is broken. -#### `async_hooks.Providers` - - -* Type: {Object} - -An object whose properties list Node.js-provided async resource types and -their associated internal numeric identifiers. This is provided as a -convenience for diagnostic tooling. The names and numeric identifiers of -any provider may be changed at any time. - ### Class: `AsyncHook` The class `AsyncHook` exposes an interface for tracking lifetime events diff --git a/lib/async_hooks.js b/lib/async_hooks.js index c060a59c6f9f2e..2ac2894c40c092 100644 --- a/lib/async_hooks.js +++ b/lib/async_hooks.js @@ -66,7 +66,6 @@ const { kTotals, kPromiseResolve, }, - Providers, } = require('internal/async_hooks'); // Listener API // @@ -357,5 +356,4 @@ module.exports = { executionAsyncResource, // Embedder API AsyncResource, - Providers, }; diff --git a/lib/internal/async_hooks.js b/lib/internal/async_hooks.js index 9ad95b1e46da65..82c580bc71a60a 100644 --- a/lib/internal/async_hooks.js +++ b/lib/internal/async_hooks.js @@ -30,7 +30,6 @@ const { enablePromiseHook, disablePromiseHook, registerDestroyHook, - Providers, constants: { kInit, kBefore, @@ -598,6 +597,4 @@ module.exports = { destroy: emitDestroyNative, promise_resolve: emitPromiseResolveNative }, - // Export a copy so that the originals are never changed. - Providers: { ...Providers }, };