summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-respond-nghttperrors.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 /test/parallel/test-http2-respond-nghttperrors.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 'test/parallel/test-http2-respond-nghttperrors.js')
-rw-r--r--test/parallel/test-http2-respond-nghttperrors.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-http2-respond-nghttperrors.js b/test/parallel/test-http2-respond-nghttperrors.js
index ad9eee0d59..5ebd24a65b 100644
--- a/test/parallel/test-http2-respond-nghttperrors.js
+++ b/test/parallel/test-http2-respond-nghttperrors.js
@@ -5,11 +5,12 @@ const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
+const { internalBinding } = require('internal/test/binding');
const {
constants,
Http2Stream,
nghttp2ErrorString
-} = process.binding('http2');
+} = internalBinding('http2');
const { NghttpError } = require('internal/http2/util');
// tests error handling within respond