node/lib/internal/modules
Joyee Cheung 8ab31402c1
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: https://github.com/nodejs/node/pull/55679
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2024-11-03 17:11:34 +00:00
..
cjs module: simplify --inspect-brk handling 2024-11-03 17:11:34 +00:00
esm module: fix error thrown from require(esm) hitting TLA repeatedly 2024-10-29 21:15:19 +00:00
helpers.js module: add module.stripTypeScriptTypes 2024-10-24 18:27:58 +00:00
package_json_reader.js module: simplify findPackageJSON implementation 2024-11-02 15:13:23 +00:00
run_main.js module: support loading entrypoint as url 2024-09-27 15:26:48 +08:00
typescript.js module: add module.stripTypeScriptTypes 2024-10-24 18:27:58 +00:00