New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: remove enable_run_as_node build flag #38413
Conversation
0bc8003
to
8cdc581
Compare
@@ -22,10 +21,6 @@ bool IsPDFViewerEnabled() { | |||
return BUILDFLAG(ENABLE_PDF_VIEWER); | |||
} | |||
|
|||
bool IsRunAsNodeEnabled() { | |||
return electron::fuses::IsRunAsNodeEnabled() && BUILDFLAG(ENABLE_RUN_AS_NODE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this the feature api is still needed so that tests can be excluded based on the fuse value ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't have infra to test different fuse values unfortunately right now, it would make sense to add that as none of the other fuses are being tested
Release Notes Persisted
|
* feat: remove enable_run_as_node flag * drop features.isRunAsNodeEnabled() * use IsEnvSet() helper in electron_main_linux.cc * cleanup [[maybe_unused]] --------- Co-authored-by: Milan Burda <miburda@microsoft.com>
Description of Change
We don't need the buildflag anymore now that we have https://github.com/electron/electron/blob/main/docs/tutorial/fuses.md#runasnode
Checklist
npm test
passesRelease Notes
Notes: The
enable_run_as_node
build flag has been removed in favor of therunAsNode
fuse.