Skip to content

module: simplify --inspect-brk handling#55679

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:inspect-brk
Nov 3, 2024
Merged

module: simplify --inspect-brk handling#55679
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:inspect-brk

Conversation

@joyeecheung
Copy link
Copy Markdown
Member

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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants