src: make ELDHistogram a HandleWrap

This simplifies the implementation of ELDHistogram a bit,
and more generally allows us to have weak JS references
associated with `HandleWrap`s.

PR-URL: https://github.com/nodejs/node/pull/29317
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Anna Henningsen 2019-08-25 19:35:22 +02:00 committed by Rich Trott
parent 1e01f3f022
commit 0af62aae07
6 changed files with 33 additions and 34 deletions

View file

@ -50,6 +50,7 @@ const { getSystemErrorName } = require('util');
delete providers.KEYPAIRGENREQUEST;
delete providers.HTTPCLIENTREQUEST;
delete providers.HTTPINCOMINGMESSAGE;
delete providers.ELDHISTOGRAM;
const objKeys = Object.keys(providers);
if (objKeys.length > 0)