chore: bump node to v16.14.2 (main) (#32833)
* chore: bump node in DEPS to v16.14.0 * src: add flags for controlling process behavior https://github.com/nodejs/node/pull/40339 * src: add x509.fingerprint512 to crypto module https://github.com/nodejs/node/pull/39809 * deps: upgrade to libuv 1.43.0 https://github.com/nodejs/node/pull/41398 * chore: fixup patch indices * chore: add missing filenames https://github.com/nodejs/node/pull/39283 https://github.com/nodejs/node/pull/40665 * crypto: trim input for NETSCAPE_SPKI_b64_decode https://github.com/nodejs/node/pull/40757 * chore: update patches * chore: bump node in DEPS to v16.14.1 * tools: enable no-empty ESLint rule https://github.com/nodejs/node/pull/41831 * chore: update patches * chore: update patches * chore: bump node in DEPS to v16.14.2 * chore: update patches Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
This commit is contained in:
parent
cc253f5de9
commit
db5a3c014a
31 changed files with 95 additions and 351 deletions
|
@ -365,7 +365,6 @@ bool NodeBindings::IsInitialized() {
|
|||
void NodeBindings::Initialize() {
|
||||
TRACE_EVENT0("electron", "NodeBindings::Initialize");
|
||||
// Open node's error reporting system for browser process.
|
||||
node::g_upstream_node_mode = false;
|
||||
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
// Get real command line in renderer process forked by zygote.
|
||||
|
@ -381,14 +380,17 @@ void NodeBindings::Initialize() {
|
|||
|
||||
auto env = base::Environment::Create();
|
||||
SetNodeOptions(env.get());
|
||||
node::Environment::should_read_node_options_from_env_ =
|
||||
fuses::IsNodeOptionsEnabled();
|
||||
|
||||
std::vector<std::string> argv = {"electron"};
|
||||
std::vector<std::string> exec_argv;
|
||||
std::vector<std::string> errors;
|
||||
uint64_t process_flags = node::ProcessFlags::kEnableStdioInheritance;
|
||||
if (!fuses::IsNodeOptionsEnabled())
|
||||
process_flags |= node::ProcessFlags::kDisableNodeOptionsEnv;
|
||||
|
||||
int exit_code = node::InitializeNodeWithArgs(&argv, &exec_argv, &errors);
|
||||
int exit_code = node::InitializeNodeWithArgs(
|
||||
&argv, &exec_argv, &errors,
|
||||
static_cast<node::ProcessFlags::Flags>(process_flags));
|
||||
|
||||
for (const std::string& error : errors)
|
||||
fprintf(stderr, "%s: %s\n", argv[0].c_str(), error.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue