We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 844b45b commit b30c40bCopy full SHA for b30c40b
lib/perf_hooks.js
@@ -92,11 +92,12 @@ const IDX_SESSION_STATS_DATA_SENT = 6;
92
const IDX_SESSION_STATS_DATA_RECEIVED = 7;
93
const IDX_SESSION_STATS_MAX_CONCURRENT_STREAMS = 8;
94
95
+let http2;
96
let sessionStats;
97
let streamStats;
98
99
function collectHttp2Stats(entry) {
- const http2 = internalBinding('http2');
100
+ if (http2 === undefined) http2 = internalBinding('http2');
101
switch (entry.name) {
102
case 'Http2Stream':
103
if (streamStats === undefined)
0 commit comments