From 04eb1de2eb156adde4d5bd2828ae583f13c61ac5 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Thu, 16 Apr 2026 15:14:16 +0200 Subject: [PATCH] [flags] Set the V8 flag --wasm-unsafe-fast-api-wrapper The wrappers for fast API calls from wasm were disabled in V8 by default as they may allow sandbox escapes. This PR re-enables them for node.js. --- src/node.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node.cc b/src/node.cc index 6e0ad950cc4b3d..1ab8bb95e35078 100644 --- a/src/node.cc +++ b/src/node.cc @@ -874,6 +874,8 @@ static ExitCode InitializeNodeWithArgsInternal( // default value. V8::SetFlagsFromString("--rehash-snapshot"); + V8::SetFlagsFromString("--wasm-unsafe-fast-api-wrapper"); + HandleEnvOptions(per_process::cli_options->per_isolate->per_env); std::string node_options;