Commit f507c05
module: simplify --inspect-brk handling
Previously in the CommonJS loader, --inspect-brk is implemented
checking whether the module points to the result of re-resolving
process.argv[1] to determine whether the module is the entry point.
This is unnecessarily complex, especially now that we store that
information in the module as kIsMainSymbol. This patch updates
it to simply check that symbol property instead.
PR-URL: #55679
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>1 parent 8e76cc6 commit f507c05Copy full SHA for f507c05
File tree
Expand file treeCollapse file tree
1 file changed
+4
-38
lines changedOpen diff view settings
Filter options
- lib/internal/modules/cjs
Expand file treeCollapse file tree
1 file changed
+4
-38
lines changedOpen diff view settings
Collapse file
lib/internal/modules/cjs/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/loader.js+4-38Lines changed: 4 additions & 38 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1317 | 1317 | |
1318 | 1318 | |
1319 | 1319 | |
1320 | | - |
1321 | | - |
1322 | | - |
1323 | | - |
1324 | | - |
1325 | | - |
1326 | | - |
1327 | | - |
1328 | | - |
1329 | 1320 | |
1330 | 1321 | |
1331 | 1322 | |
| ||
1536 | 1527 | |
1537 | 1528 | |
1538 | 1529 | |
1539 | | - |
1540 | | - |
1541 | | - |
1542 | | - |
1543 | | - |
1544 | | - |
1545 | | - |
1546 | | - |
1547 | | - |
1548 | | - |
1549 | | - |
1550 | | - |
1551 | | - |
1552 | | - |
1553 | | - |
1554 | | - |
1555 | | - |
1556 | | - |
1557 | | - |
1558 | | - |
1559 | | - |
1560 | | - |
1561 | | - |
1562 | | - |
1563 | | - |
1564 | | - |
1565 | 1530 | |
1566 | 1531 | |
1567 | 1532 | |
| ||
1571 | 1536 | |
1572 | 1537 | |
1573 | 1538 | |
1574 | | - |
1575 | | - |
1576 | | - |
| 1539 | + |
| 1540 | + |
| 1541 | + |
| 1542 | + |
1577 | 1543 | |
1578 | 1544 | |
1579 | 1545 | |
|
0 commit comments