Commit b1500d9
src: pass isMainThread into bootstrap/node.js directly
Instead of loading the working binding for the sole purpose of
detecting whether we are inside the main thread unconditionally.
PR-URL: #25017
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent ee461fe commit b1500d9Copy full SHA for b1500d9
File tree
Expand file treeCollapse file tree
3 files changed
+7
-4
lines changedOpen diff view settings
Filter options
- lib/internal/bootstrap
- src
- test/parallel
Expand file treeCollapse file tree
3 files changed
+7
-4
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
| 19 | + |
18 | 20 | |
19 | 21 | |
20 | 22 | |
| ||
28 | 30 | |
29 | 31 | |
30 | 32 | |
31 | | - |
32 | 33 | |
33 | 34 | |
34 | 35 | |
|
Collapse file
+4-2Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1267 | 1267 | |
1268 | 1268 | |
1269 | 1269 | |
1270 | | - |
| 1270 | + |
| 1271 | + |
1271 | 1272 | |
1272 | 1273 | |
1273 | 1274 | |
1274 | 1275 | |
1275 | 1276 | |
1276 | 1277 | |
1277 | | - |
| 1278 | + |
| 1279 | + |
1278 | 1280 | |
1279 | 1281 | |
1280 | 1282 | |
|
Collapse file
test/parallel/test-bootstrap-modules.js
Copy file name to clipboardExpand all lines: test/parallel/test-bootstrap-modules.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
|
0 commit comments