File tree Expand file tree Collapse file tree 11 files changed +16
-11
lines changed
Expand file tree Collapse file tree 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');
3535const { internalBinding } = require ( 'internal/bootstrap/loaders' ) ;
3636const { TCP , constants : TCPConstants } = internalBinding ( 'tcp_wrap' ) ;
3737const tls_wrap = internalBinding ( 'tls_wrap' ) ;
38- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
38+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
3939const { owner_symbol } = require ( 'internal/async_hooks' ) . symbols ;
4040const { SecureContext : NativeSecureContext } = internalBinding ( 'crypto' ) ;
4141const {
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ const {
2828const { isArrayBufferView } = require ( 'internal/util/types' ) ;
2929const debug = util . debuglog ( 'child_process' ) ;
3030const { 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' ) ;
3233const {
3334 ERR_INVALID_ARG_VALUE ,
3435 ERR_CHILD_PROCESS_IPC_REQUIRED ,
Original file line number Diff line number Diff line change 350350 new SafeSet ( [
351351 'fs_event_wrap' ,
352352 'uv' ,
353+ 'pipe_wrap' ,
353354 'http_parser' ,
354355 'process_wrap' ,
355356 'v8' ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const { internalBinding } = require('internal/bootstrap/loaders');
2525
2626const { Process } = internalBinding ( 'process_wrap' ) ;
2727const { WriteWrap } = internalBinding ( 'stream_wrap' ) ;
28- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
28+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
2929const { TCP } = internalBinding ( 'tcp_wrap' ) ;
3030const { TTY } = internalBinding ( 'tty_wrap' ) ;
3131const { UDP } = process . binding ( 'udp_wrap' ) ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ const {
5353 Pipe,
5454 PipeConnectWrap,
5555 constants : PipeConstants
56- } = process . binding ( 'pipe_wrap' ) ;
56+ } = internalBinding ( 'pipe_wrap' ) ;
5757const {
5858 newAsyncId,
5959 defaultTriggerAsyncIdScope,
Original file line number Diff line number Diff line change @@ -242,4 +242,4 @@ void PipeWrap::Connect(const FunctionCallbackInfo<Value>& args) {
242242
243243} // namespace node
244244
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 33
44const common = require ( '../common' ) ;
55const strictEqual = require ( 'assert' ) . strictEqual ;
6+ const { internalBinding } = require ( 'internal/test/binding' ) ;
67
78// child_process
89{
@@ -72,7 +73,7 @@ const { kStateSymbol } = require('internal/dgram');
7273
7374// pipe
7475{
75- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
76+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
7677 const handle = new Pipe ( PipeConstants . SOCKET ) ;
7778 strictEqual ( Object . getPrototypeOf ( handle ) . hasOwnProperty ( 'hasRef' ) ,
7879 true , 'pipe_wrap: hasRef() missing' ) ;
Original file line number Diff line number Diff line change 1+ // Flags: --expose-internals
12'use strict' ;
23const common = require ( '../common' ) ;
34if ( common . isWindows )
@@ -6,7 +7,8 @@ if (common.isWindows)
67const assert = require ( 'assert' ) ;
78const net = require ( 'net' ) ;
89const 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' ) ;
1012
1113const tmpdir = require ( '../common/tmpdir' ) ;
1214tmpdir . refresh ( ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const fs = require('fs');
88const { getSystemErrorName } = require ( 'util' ) ;
99const { internalBinding } = require ( 'internal/test/binding' ) ;
1010const { TCP , constants : TCPConstants } = internalBinding ( 'tcp_wrap' ) ;
11- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
11+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
1212
1313const tmpdir = require ( '../common/tmpdir' ) ;
1414tmpdir . refresh ( ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ require('../common');
2525const assert = require ( 'assert' ) ;
2626const { internalBinding } = require ( 'internal/test/binding' ) ;
2727const Process = internalBinding ( 'process_wrap' ) . Process ;
28- const { Pipe, constants : PipeConstants } = process . binding ( 'pipe_wrap' ) ;
28+ const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
2929const pipe = new Pipe ( PipeConstants . SOCKET ) ;
3030const p = new Process ( ) ;
3131
You can’t perform that action at this time.
0 commit comments