From: Jérémy Lal Date: Wed, 14 Jan 2026 00:19:18 +0000 (+0100) Subject: disable shared builtins when loading deps on demand X-Git-Tag: archive/raspbian/22.22.0+dfsg+_cs22.19.6-1+rpi1^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=797140454f7710c6b757fbe5ec70716477a3c0ed;p=nodejs.git disable shared builtins when loading deps on demand Last-Update: 2023-12-10 Forwarded: no, todo 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 7c6b7463d..98d6b07c9 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", @@ -76,6 +77,8 @@ BuiltinLoader::BuiltinLoader() STRINGIFY(NODE_SHARED_BUILTIN_AMARO_DIST_INDEX_PATH)); #endif // NODE_SHARED_BUILTIN_AMARO_DIST_INDEX_PATH #endif // HAVE_AMARO + +#endif // NOT NODE_BUILTIN_MODULES_PATH } bool BuiltinLoader::Exists(const char* id) {