diff options
author | Anna Henningsen <anna@addaleax.net> | 2021-06-12 00:43:48 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2021-06-14 14:30:50 +0300 |
commit | cd43073ce2c0c89498e37b4db6161a56fccd1fff (patch) | |
tree | 3ef9a3904e24baa7e858ae0620e429fc319ec6e9 /src/env.h | |
parent | 67d4a3f9bde27e4a4347d0bfa752be6cce33e6e9 (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.h | 1 |
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; |