Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorDominic Elm <elmdominic@gmx.net>2021-09-02 16:17:42 +0300
committerBradley Farias <bradley.meck@gmail.com>2021-09-10 18:54:39 +0300
commita9dd03b1ec89a75186f05967fc76ec0704050c36 (patch)
treedb9cd062535160d91bd45f178b9761259ca9e2dd /src/env.h
parenta42bd7e944ed422adb78f767c7a9b3187989234a (diff)
src: add option to disable loading native addons
PR-URL: https://github.com/nodejs/node/pull/39977 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index 4fd5be8e150..f7d1dace414 100644
--- a/src/env.h
+++ b/src/env.h
@@ -1197,6 +1197,7 @@ class Environment : public MemoryRetainer {
inline void set_has_serialized_options(bool has_serialized_options);
inline bool is_main_thread() const;
+ inline bool no_native_addons() const;
inline bool should_not_register_esm_loader() const;
inline bool owns_process_state() const;
inline bool owns_inspector() const;