From: Jérémy Lal Date: Mon, 10 Feb 2025 14:45:36 +0000 (+0100) Subject: disable shared builtins when loading deps on demand X-Git-Tag: archive/raspbian/20.18.3+dfsg-1+rpi1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bf762ccbf5d90ec85bc8cc3c2f9f36707e539504;p=nodejs.git disable shared builtins when loading deps on demand Last-Update: 2023-12-10 Forwarded: no This is to avoid preloading potentially missing files. Gbp-Pq: Topic build Gbp-Pq: Name builtins_module_paths_not_shareable.patch --- diff --git a/src/node_builtins.cc b/src/node_builtins.cc index 05573896a..5f45b3e00 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc @@ -35,6 +35,7 @@ using v8::Value; BuiltinLoader::BuiltinLoader() : config_(GetConfig()), code_cache_(std::make_shared()) { LoadJavaScriptSource(); +#ifndef NODE_BUILTIN_MODULES_PATH #ifdef NODE_SHARED_BUILTIN_CJS_MODULE_LEXER_LEXER_PATH AddExternalizedBuiltin( "internal/deps/cjs-module-lexer/lexer", @@ -69,7 +70,7 @@ BuiltinLoader::BuiltinLoader() "internal/deps/minimatch/index", STRINGIFY(NODE_SHARED_BUILTIN_MINIMATCH_PATH)); #endif // NODE_SHARED_BUILTIN_MINIMATCH_PATH - +#endif } bool BuiltinLoader::Exists(const char* id) {