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>
This commit is contained in:
James M Snell 2018-08-14 16:01:54 -07:00
parent c7788fba28
commit 4fa5448e5d
No known key found for this signature in database
GPG key ID: 7341B15C070877AC
14 changed files with 29 additions and 17 deletions

View file

@ -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 pushStream