chore: bump node to v20.15.0 (31-x-y) (#42614)

* chore: bump node in DEPS to v20.15.0

* doc: Add OpenSSL errors to API docs

https://github.com/nodejs/node/pull/34213

* test: crypto-rsa-dsa testing for dynamic openssl

https://github.com/nodejs/node/pull/52781

* src: allow preventing debug signal handler start

https://github.com/nodejs/node/pull/46681

* cli: allow running wasm in limited vmemory with --disable-wasm-trap-handler

https://github.com/nodejs/node/pull/52766

* chore: fixup patch indices

* 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:
electron-roller[bot] 2024-06-27 15:58:43 +02:00 committed by GitHub
parent 2f6c4d8d24
commit 6a058ed6cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 38 additions and 145 deletions

View file

@ -531,10 +531,15 @@ void NodeBindings::Initialize(v8::Local<v8::Context> context) {
// Parse and set Node.js cli flags.
std::vector<std::string> args = ParseNodeCliFlags();
// V8::EnableWebAssemblyTrapHandler can be called only once or it will
// hard crash. We need to prevent Node.js calling it in the event it has
// already been called.
node::per_process::cli_options->disable_wasm_trap_handler = true;
uint64_t process_flags =
node::ProcessInitializationFlags::kNoInitializeV8 |
node::ProcessInitializationFlags::kNoInitializeNodeV8Platform |
node::ProcessInitializationFlags::kNoEnableWasmTrapHandler;
node::ProcessInitializationFlags::kNoInitializeNodeV8Platform;
// We do not want the child processes spawned from the utility process
// to inherit the custom stdio handles created for the parent.