File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 368368 'contextify' ,
369369 'tcp_wrap' ,
370370 'tls_wrap' ,
371- 'async_wrap' ] ) ;
371+ 'async_wrap' ,
372+ 'spawn_sync' ] ) ;
372373 process . binding = function binding ( name ) {
373374 return internalBindingWhitelist . has ( name ) ?
374375 internalBinding ( name ) :
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ const util = require('util');
2222const assert = require ( 'assert' ) ;
2323
2424const { internalBinding } = require ( 'internal/bootstrap/loaders' ) ;
25-
2625const { Process } = internalBinding ( 'process_wrap' ) ;
2726const { WriteWrap } = internalBinding ( 'stream_wrap' ) ;
2827const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
@@ -33,7 +32,7 @@ const SocketList = require('internal/socket_list');
3332const { owner_symbol } = require ( 'internal/async_hooks' ) . symbols ;
3433const { convertToValidSignal } = require ( 'internal/util' ) ;
3534const { isArrayBufferView } = require ( 'internal/util/types' ) ;
36- const spawn_sync = process . binding ( 'spawn_sync' ) ;
35+ const spawn_sync = internalBinding ( 'spawn_sync' ) ;
3736const { HTTPParser } = internalBinding ( 'http_parser' ) ;
3837const { freeParser } = require ( '_http_common' ) ;
3938const { 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) {
10991099
11001100} // namespace node
11011101
1102- NODE_BUILTIN_MODULE_CONTEXT_AWARE (spawn_sync,
1102+ NODE_MODULE_CONTEXT_AWARE_INTERNAL (spawn_sync,
11031103 node::SyncProcessRunner::Initialize)
Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ assert(process.binding('v8'));
1212assert ( process . binding ( 'stream_wrap' ) ) ;
1313assert ( process . binding ( 'signal_wrap' ) ) ;
1414assert ( process . binding ( 'contextify' ) ) ;
15+ assert ( process . binding ( 'spawn_sync' ) ) ;
You can’t perform that action at this time.
0 commit comments