File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 368
368
'contextify' ,
369
369
'tcp_wrap' ,
370
370
'tls_wrap' ,
371
- 'async_wrap' ] ) ;
371
+ 'async_wrap' ,
372
+ 'spawn_sync' ] ) ;
372
373
process . binding = function binding ( name ) {
373
374
return internalBindingWhitelist . has ( name ) ?
374
375
internalBinding ( name ) :
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ const util = require('util');
22
22
const assert = require ( 'assert' ) ;
23
23
24
24
const { internalBinding } = require ( 'internal/bootstrap/loaders' ) ;
25
-
26
25
const { Process } = internalBinding ( 'process_wrap' ) ;
27
26
const { WriteWrap } = internalBinding ( 'stream_wrap' ) ;
28
27
const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
@@ -33,7 +32,7 @@ const SocketList = require('internal/socket_list');
33
32
const { owner_symbol } = require ( 'internal/async_hooks' ) . symbols ;
34
33
const { convertToValidSignal } = require ( 'internal/util' ) ;
35
34
const { isArrayBufferView } = require ( 'internal/util/types' ) ;
36
- const spawn_sync = process . binding ( 'spawn_sync' ) ;
35
+ const spawn_sync = internalBinding ( 'spawn_sync' ) ;
37
36
const { HTTPParser } = internalBinding ( 'http_parser' ) ;
38
37
const { freeParser } = require ( '_http_common' ) ;
39
38
const { kStateSymbol } = require ( 'internal/dgram' ) ;
Original file line number Diff line number Diff line change @@ -1099,5 +1099,5 @@ void SyncProcessRunner::KillTimerCloseCallback(uv_handle_t* handle) {
1099
1099
1100
1100
} // namespace node
1101
1101
1102
- NODE_BUILTIN_MODULE_CONTEXT_AWARE (spawn_sync,
1102
+ NODE_MODULE_CONTEXT_AWARE_INTERNAL (spawn_sync,
1103
1103
node::SyncProcessRunner::Initialize)
Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ assert(process.binding('v8'));
12
12
assert ( process . binding ( 'stream_wrap' ) ) ;
13
13
assert ( process . binding ( 'signal_wrap' ) ) ;
14
14
assert ( process . binding ( 'contextify' ) ) ;
15
+ assert ( process . binding ( 'spawn_sync' ) ) ;
You can’t perform that action at this time.
0 commit comments