Skip to content

src: add setTitle() as alternative to direct assignment#62804

Open
JonathanLopes404 wants to merge 2 commits intonodejs:mainfrom
JonathanLopes404:fix/issue-62797
Open

src: add setTitle() as alternative to direct assignment#62804
JonathanLopes404 wants to merge 2 commits intonodejs:mainfrom
JonathanLopes404:fix/issue-62797

Conversation

@JonathanLopes404
Copy link
Copy Markdown

Implement process.setTitle(title) as a new function-based API for setting the process title, complementing the existing process.title property assignment pattern

Fixes: #62797

Implement process.setTitle(title) as a new function-based API for
setting the process title, complementing the existing process.title
property assignment pattern

Fixes: nodejs#62797
Signed-off-by: Jonathan Lopes <jonathan15989@protonmail.com>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/startup

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Apr 18, 2026
Copy link
Copy Markdown
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this introduce a new native method? Adding the new API is fine, but it should just trigger the same code paths.

Add process.setTitle(title) as a new API while reusing the existing
process.title assignment behavior instead of introducing a separate
native code path.

Signed-off-by: Jonathan Lopes <jonathan15989@protonmail.com>
@JonathanLopes404
Copy link
Copy Markdown
Author

@addaleax Updated in latest commit: setTitle now reuses the existing process.title path (removed native method). Could you please take another look?

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

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a process.setTitle() function

3 participants