build: revert bump Node.js to v22.9.0 (#44596)
* Revert "chore: bump Node.js to v22.9.0 (#44281)"
This reverts commit c63d0d61e7
.
* chore: update patches
This commit is contained in:
parent
4b57a8fb1a
commit
f9a04012b9
74 changed files with 3997 additions and 1439 deletions
|
@ -183,7 +183,7 @@ int NodeMain() {
|
|||
const std::vector<std::string> args = ElectronCommandLine::AsUtf8();
|
||||
ExitIfContainsDisallowedFlags(args);
|
||||
|
||||
std::shared_ptr<node::InitializationResult> result =
|
||||
std::unique_ptr<node::InitializationResult> result =
|
||||
node::InitializeOncePerProcess(
|
||||
args,
|
||||
{node::ProcessInitializationFlags::kNoInitializeV8,
|
||||
|
|
|
@ -165,10 +165,8 @@ bool ShouldBlockAccessToPath(const base::FilePath& path,
|
|||
ChromeFileSystemAccessPermissionContext::kBlockedPaths) {
|
||||
if (key == ChromeFileSystemAccessPermissionContext::kNoBasePathKey) {
|
||||
rules.emplace_back(base::FilePath{rule_path}, type);
|
||||
} else if (base::FilePath block_path;
|
||||
base::PathService::Get(key, &block_path)) {
|
||||
rules.emplace_back(rule_path ? block_path.Append(rule_path) : block_path,
|
||||
type);
|
||||
} else if (base::FilePath path; base::PathService::Get(key, &path)) {
|
||||
rules.emplace_back(rule_path ? path.Append(rule_path) : path, type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -568,7 +568,7 @@ void NodeBindings::Initialize(v8::Local<v8::Context> context) {
|
|||
if (!fuses::IsNodeOptionsEnabled())
|
||||
process_flags |= node::ProcessInitializationFlags::kDisableNodeOptionsEnv;
|
||||
|
||||
std::shared_ptr<node::InitializationResult> result =
|
||||
std::unique_ptr<node::InitializationResult> result =
|
||||
node::InitializeOncePerProcess(
|
||||
args,
|
||||
static_cast<node::ProcessInitializationFlags::Flags>(process_flags));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue