Commit 69eaff1
lib: move initialization of APIs for changing process state
Whether these APIs should be available for Node.js instances
semantically depends on whether the current Node.js instance
was assigned ownership of process-wide state, and not whether
it refers to the main thread or not.
PR-URL: #31172
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>1 parent ff47915 commit 69eaff1Copy full SHA for 69eaff1
File tree
Expand file treeCollapse file tree
4 files changed
+55
-56
lines changedOpen diff view settings
Filter options
- lib/internal/bootstrap/switches
Expand file treeCollapse file tree
4 files changed
+55
-56
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/switches/does_not_own_process_state.js
Copy file name to clipboard+21-3Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
| 6 | + |
4 | 7 | |
5 | | - |
6 | | - |
7 | | - |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
8 | 12 | |
| 13 | + |
9 | 14 | |
10 | 15 | |
11 | 16 | |
| ||
16 | 21 | |
17 | 22 | |
18 | 23 | |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
Collapse file
lib/internal/bootstrap/switches/does_own_process_state.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/switches/does_own_process_state.js+34Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
4 | 10 | |
5 | 11 | |
6 | 12 | |
| ||
16 | 22 | |
17 | 23 | |
18 | 24 | |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
19 | 30 | |
20 | 31 | |
21 | 32 | |
| ||
94 | 105 | |
95 | 106 | |
96 | 107 | |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
Collapse file
lib/internal/bootstrap/switches/is_main_thread.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/switches/is_main_thread.js-32Lines changed: 0 additions & 32 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | 6 | |
12 | 7 | |
13 | 8 | |
| ||
38 | 33 | |
39 | 34 | |
40 | 35 | |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | 36 | |
69 | 37 | |
70 | 38 | |
|
Collapse file
lib/internal/bootstrap/switches/is_not_main_thread.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/switches/is_not_main_thread.js-21Lines changed: 0 additions & 21 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | 4 | |
14 | 5 | |
15 | 6 | |
| ||
42 | 33 | |
43 | 34 | |
44 | 35 | |
45 | | - |
46 | | - |
47 | | - |
48 | 36 | |
49 | 37 | |
50 | 38 | |
| ||
57 | 45 | |
58 | 46 | |
59 | 47 | |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
0 commit comments