File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
2+ const {
3+ Symbol,
4+ } = primordials ;
5+
26const { Duplex } = require ( 'stream' ) ;
37const assert = require ( 'internal/assert' ) ;
48
5- const { Symbol } = primordials ;
69const kCallback = Symbol ( 'Callback' ) ;
710const kInitOtherSide = Symbol ( 'InitOtherSide' ) ;
811
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ if (!common.hasCrypto)
88const assert = require ( 'assert' ) ;
99const http2 = require ( 'http2' ) ;
1010const stream = require ( 'stream' ) ;
11- const makeDuplexPair = require ( '../common/duplexpair ' ) ;
11+ const { duplexPair } = require ( 'stream ' ) ;
1212
1313// Basic test
1414{
15- const { clientSide, serverSide } = makeDuplexPair ( ) ;
15+ const [ clientSide , serverSide ] = duplexPair ( ) ;
1616
1717 const client = http2 . connect ( 'http://example.com' , {
1818 createConnection : ( ) => clientSide ,
You can’t perform that action at this time.
0 commit comments