File tree 4 files changed +5
-4
lines changed
4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 376
376
'tls_wrap' ,
377
377
'util' ,
378
378
'async_wrap' ,
379
- 'url' ] ) ;
379
+ 'url' ,
380
+ 'spawn_sync' ] ) ;
380
381
process . binding = function binding ( name ) {
381
382
return internalBindingWhitelist . has ( name ) ?
382
383
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 @@ -1100,5 +1100,5 @@ void SyncProcessRunner::KillTimerCloseCallback(uv_handle_t* handle) {
1100
1100
1101
1101
} // namespace node
1102
1102
1103
- NODE_BUILTIN_MODULE_CONTEXT_AWARE (spawn_sync,
1103
+ NODE_MODULE_CONTEXT_AWARE_INTERNAL (spawn_sync,
1104
1104
node::SyncProcessRunner::Initialize)
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ assert(process.binding('stream_wrap'));
13
13
assert ( process . binding ( 'signal_wrap' ) ) ;
14
14
assert ( process . binding ( 'contextify' ) ) ;
15
15
assert ( process . binding ( 'url' ) ) ;
16
+ assert ( process . binding ( 'spawn_sync' ) ) ;
You can’t perform that action at this time.
0 commit comments