summaryrefslogtreecommitdiff
path: root/lib/internal/http2/compat.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-08-14 16:01:54 -0700
committerJames M Snell <jasnell@gmail.com>2018-08-18 12:39:59 -0700
commit4fa5448e5dd8fc06f92f94b170918913aef5bbdb (patch)
treec082853f723963bd6d77e83a310b4e99b7304e22 /lib/internal/http2/compat.js
parentc7788fba28b913bbab5eac929e8993742873b486 (diff)
downloadandroid-node-v8-4fa5448e5dd8fc06f92f94b170918913aef5bbdb.tar.gz
android-node-v8-4fa5448e5dd8fc06f92f94b170918913aef5bbdb.tar.bz2
android-node-v8-4fa5448e5dd8fc06f92f94b170918913aef5bbdb.zip
http2: move process.binding('http2') to internalBinding
Refs: https://github.com/nodejs/node/issues/22160 PR-URL: https://github.com/nodejs/node/pull/22328 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'lib/internal/http2/compat.js')
-rw-r--r--lib/internal/http2/compat.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/http2/compat.js b/lib/internal/http2/compat.js
index 40276d8723..a20275b313 100644
--- a/lib/internal/http2/compat.js
+++ b/lib/internal/http2/compat.js
@@ -1,8 +1,9 @@
'use strict';
+const { internalBinding } = require('internal/bootstrap/loaders');
const Stream = require('stream');
const Readable = Stream.Readable;
-const binding = process.binding('http2');
+const binding = internalBinding('http2');
const constants = binding.constants;
const {
ERR_HTTP2_HEADERS_SENT,