From: Jérémy Lal Date: Wed, 19 Jun 2024 10:03:27 +0000 (+0200) Subject: disable shared builtins when loading deps on demand X-Git-Tag: archive/raspbian/20.14.0+dfsg-3+rpi1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=165bf65ca0bc63acb83b3c783289e94daf72edb4;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 ae121d02e..335fc061c 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", @@ -63,6 +64,7 @@ BuiltinLoader::BuiltinLoader() "internal/deps/acorn/acorn-walk/dist/walk", STRINGIFY(NODE_SHARED_BUILTIN_ACORN_WALK_PATH)); #endif // NODE_SHARED_BUILTIN_ACORN_WALK_PATH +#endif }