Skip to content

Commit

Permalink
fixup! lib: runtime deprecate access to process.binding('async_wrap')
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Mar 2, 2021
1 parent d68a7af commit 3054f1b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
<!-- YAML
added: REPLACEME
-->

* 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
Expand Down
2 changes: 0 additions & 2 deletions lib/async_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ const {
kTotals,
kPromiseResolve,
},
Providers,
} = require('internal/async_hooks');

// Listener API //
Expand Down Expand Up @@ -357,5 +356,4 @@ module.exports = {
executionAsyncResource,
// Embedder API
AsyncResource,
Providers,
};
3 changes: 0 additions & 3 deletions lib/internal/async_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const {
enablePromiseHook,
disablePromiseHook,
registerDestroyHook,
Providers,
constants: {
kInit,
kBefore,
Expand Down Expand Up @@ -598,6 +597,4 @@ module.exports = {
destroy: emitDestroyNative,
promise_resolve: emitPromiseResolveNative
},
// Export a copy so that the originals are never changed.
Providers: { ...Providers },
};

0 comments on commit 3054f1b

Please sign in to comment.