File tree 3 files changed +17
-0
lines changed
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
const { options, aliases } = require ( 'internal/options' ) ;
3
3
4
+ const {
5
+ prepareMainThreadExecution
6
+ } = require ( 'internal/bootstrap/pre_execution' ) ;
7
+
4
8
function print ( stream ) {
5
9
const all_opts = [ ...options . keys ( ) , ...aliases . keys ( ) ] ;
6
10
@@ -18,6 +22,8 @@ function print(stream) {
18
22
complete -F _node_complete node node_g` ) ;
19
23
}
20
24
25
+ prepareMainThreadExecution ( ) ;
26
+
21
27
markBootstrapComplete ( ) ;
22
28
23
29
print ( process . stdout ) ;
Original file line number Diff line number Diff line change 3
3
const { types } = internalBinding ( 'options' ) ;
4
4
const hasCrypto = Boolean ( process . versions . openssl ) ;
5
5
6
+ const {
7
+ prepareMainThreadExecution
8
+ } = require ( 'internal/bootstrap/pre_execution' ) ;
9
+
6
10
const typeLookup = [ ] ;
7
11
for ( const key of Object . keys ( types ) )
8
12
typeLookup [ types [ key ] ] = key ;
@@ -171,6 +175,8 @@ function print(stream) {
171
175
stream . write ( '\nDocumentation can be found at https://nodejs.org/\n' ) ;
172
176
}
173
177
178
+ prepareMainThreadExecution ( ) ;
179
+
174
180
markBootstrapComplete ( ) ;
175
181
176
182
print ( process . stdout ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ const {
4
+ prepareMainThreadExecution
5
+ } = require ( 'internal/bootstrap/pre_execution' ) ;
6
+
7
+ prepareMainThreadExecution ( ) ;
3
8
markBootstrapComplete ( ) ;
4
9
require ( 'internal/v8_prof_processor' ) ;
You can’t perform that action at this time.
0 commit comments