Skip to content

Commit

Permalink
add aduh95's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
RaisinTen committed Feb 19, 2021
1 parent f93d922 commit 8872d7c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/internal/util.js
Expand Up @@ -48,6 +48,10 @@ const {
sleep: _sleep
} = internalBinding('util');
const { isNativeError } = internalBinding('types');
const {
_getActiveHandles,
_getActiveRequests,
} = internalBinding('process_methods');

const noCrypto = !process.versions.openssl;

Expand Down Expand Up @@ -439,8 +443,8 @@ function getActiveResources() {
if (internalTimers == null) {
internalTimers = require('internal/timers');
}
const handles = process._getActiveHandles();
const reqs = process._getActiveRequests();
const handles = _getActiveHandles();
const reqs = _getActiveRequests();

const timers = {};
ArrayPrototypeForEach(ObjectValues(internalTimers.timerListMap), (list) => {
Expand Down

0 comments on commit 8872d7c

Please sign in to comment.