aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/http2/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/http2/util.js')
-rw-r--r--lib/internal/http2/util.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/http2/util.js b/lib/internal/http2/util.js
index bc93662a70..473806aa18 100644
--- a/lib/internal/http2/util.js
+++ b/lib/internal/http2/util.js
@@ -1,6 +1,7 @@
'use strict';
-const binding = process.binding('http2');
+const { internalBinding } = require('internal/bootstrap/loaders');
+const binding = internalBinding('http2');
const {
ERR_HTTP2_HEADER_SINGLE_VALUE,
ERR_HTTP2_INVALID_CONNECTION_HEADERS,