File tree 11 files changed +16
-11
lines changed
11 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const debug = util.debuglog('tls');
35
35
const { internalBinding } = require ( 'internal/bootstrap/loaders' ) ;
36
36
const { TCP , constants : TCPConstants } = internalBinding ( 'tcp_wrap' ) ;
37
37
const tls_wrap = internalBinding ( 'tls_wrap' ) ;
38
- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
38
+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
39
39
const { owner_symbol } = require ( 'internal/async_hooks' ) . symbols ;
40
40
const { SecureContext : NativeSecureContext } = internalBinding ( 'crypto' ) ;
41
41
const {
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ const {
28
28
const { isArrayBufferView } = require ( 'internal/util/types' ) ;
29
29
const debug = util . debuglog ( 'child_process' ) ;
30
30
const { Buffer } = require ( 'buffer' ) ;
31
- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
31
+ const { internalBinding } = require ( 'internal/bootstrap/loaders' ) ;
32
+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
32
33
const {
33
34
ERR_INVALID_ARG_VALUE ,
34
35
ERR_CHILD_PROCESS_IPC_REQUIRED ,
Original file line number Diff line number Diff line change 350
350
new SafeSet ( [
351
351
'fs_event_wrap' ,
352
352
'uv' ,
353
+ 'pipe_wrap' ,
353
354
'http_parser' ,
354
355
'process_wrap' ,
355
356
'v8' ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const { internalBinding } = require('internal/bootstrap/loaders');
25
25
26
26
const { Process } = internalBinding ( 'process_wrap' ) ;
27
27
const { WriteWrap } = internalBinding ( 'stream_wrap' ) ;
28
- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
28
+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
29
29
const { TCP } = internalBinding ( 'tcp_wrap' ) ;
30
30
const { TTY } = internalBinding ( 'tty_wrap' ) ;
31
31
const { UDP } = process . binding ( 'udp_wrap' ) ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ const {
53
53
Pipe,
54
54
PipeConnectWrap,
55
55
constants : PipeConstants
56
- } = process . binding ( 'pipe_wrap' ) ;
56
+ } = internalBinding ( 'pipe_wrap' ) ;
57
57
const {
58
58
newAsyncId,
59
59
defaultTriggerAsyncIdScope,
Original file line number Diff line number Diff line change @@ -242,4 +242,4 @@ void PipeWrap::Connect(const FunctionCallbackInfo<Value>& args) {
242
242
243
243
} // namespace node
244
244
245
- NODE_BUILTIN_MODULE_CONTEXT_AWARE (pipe_wrap, node::PipeWrap::Initialize)
245
+ NODE_MODULE_CONTEXT_AWARE_INTERNAL (pipe_wrap, node::PipeWrap::Initialize)
Original file line number Diff line number Diff line change 3
3
4
4
const common = require ( '../common' ) ;
5
5
const strictEqual = require ( 'assert' ) . strictEqual ;
6
+ const { internalBinding } = require ( 'internal/test/binding' ) ;
6
7
7
8
// child_process
8
9
{
@@ -72,7 +73,7 @@ const { kStateSymbol } = require('internal/dgram');
72
73
73
74
// pipe
74
75
{
75
- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
76
+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
76
77
const handle = new Pipe ( PipeConstants . SOCKET ) ;
77
78
strictEqual ( Object . getPrototypeOf ( handle ) . hasOwnProperty ( 'hasRef' ) ,
78
79
true , 'pipe_wrap: hasRef() missing' ) ;
Original file line number Diff line number Diff line change
1
+ // Flags: --expose-internals
1
2
'use strict' ;
2
3
const common = require ( '../common' ) ;
3
4
if ( common . isWindows )
@@ -6,7 +7,8 @@ if (common.isWindows)
6
7
const assert = require ( 'assert' ) ;
7
8
const net = require ( 'net' ) ;
8
9
const path = require ( 'path' ) ;
9
- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
10
+ const { internalBinding } = require ( 'internal/test/binding' ) ;
11
+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
10
12
11
13
const tmpdir = require ( '../common/tmpdir' ) ;
12
14
tmpdir . refresh ( ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const fs = require('fs');
8
8
const { getSystemErrorName } = require ( 'util' ) ;
9
9
const { internalBinding } = require ( 'internal/test/binding' ) ;
10
10
const { TCP , constants : TCPConstants } = internalBinding ( 'tcp_wrap' ) ;
11
- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
11
+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
12
12
13
13
const tmpdir = require ( '../common/tmpdir' ) ;
14
14
tmpdir . refresh ( ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ require('../common');
25
25
const assert = require ( 'assert' ) ;
26
26
const { internalBinding } = require ( 'internal/test/binding' ) ;
27
27
const Process = internalBinding ( 'process_wrap' ) . Process ;
28
- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
28
+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
29
29
const pipe = new Pipe ( PipeConstants . SOCKET ) ;
30
30
const p = new Process ( ) ;
31
31
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check
158
158
}
159
159
160
160
{
161
- const binding = process . binding ( 'pipe_wrap' ) ;
161
+ const binding = internalBinding ( 'pipe_wrap' ) ;
162
162
const handle = new binding . Pipe ( binding . constants . IPC ) ;
163
163
testInitialized ( handle , 'Pipe' ) ;
164
164
}
@@ -169,7 +169,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check
169
169
const server = net . createServer ( common . mustCall ( ( socket ) => {
170
170
server . close ( ) ;
171
171
} ) ) . listen ( common . PIPE , common . mustCall ( ( ) => {
172
- const binding = process . binding ( 'pipe_wrap' ) ;
172
+ const binding = internalBinding ( 'pipe_wrap' ) ;
173
173
const handle = new binding . Pipe ( binding . constants . SOCKET ) ;
174
174
testInitialized ( handle , 'Pipe' ) ;
175
175
const req = new binding . PipeConnectWrap ( ) ;
You can’t perform that action at this time.
0 commit comments