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:
authorAnna Henningsen <anna@addaleax.net>2021-06-12 00:43:48 +0300
committerAnna Henningsen <anna@addaleax.net>2021-06-14 14:30:50 +0300
commitcd43073ce2c0c89498e37b4db6161a56fccd1fff (patch)
tree3ef9a3904e24baa7e858ae0620e429fc319ec6e9 /src/env.h
parent67d4a3f9bde27e4a4347d0bfa752be6cce33e6e9 (diff)
src: fix multiple AddLinkedBinding() calls
Singly-linked lists are extended at their tail, not their head. This fixes using more than 2 linked addons at a time. PR-URL: https://github.com/nodejs/node/pull/39012 Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <rlau@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 a3944eab90a..1dae1f710f8 100644
--- a/src/env.h
+++ b/src/env.h
@@ -1208,6 +1208,7 @@ class Environment : public MemoryRetainer {
inline void set_stopping(bool value);
inline std::list<node_module>* extra_linked_bindings();
inline node_module* extra_linked_bindings_head();
+ inline node_module* extra_linked_bindings_tail();
inline const Mutex& extra_linked_bindings_mutex() const;
inline bool filehandle_close_warning() const;