Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6095fb0

Browse filesBrowse files
joyeecheungBethGriggs
authored andcommitted
src: register external references of SignalWrap for snapshot
PR-URL: #39961 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent db75711 commit 6095fb0
Copy full SHA for 6095fb0

File tree

Expand file treeCollapse file tree

2 files changed

+10
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-0
lines changed
Open diff view settings
Collapse file

‎src/node_external_reference.h‎

Copy file name to clipboardExpand all lines: src/node_external_reference.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class ExternalReferenceRegistry {
7272
V(serdes) \
7373
V(string_decoder) \
7474
V(stream_wrap) \
75+
V(signal_wrap) \
7576
V(trace_events) \
7677
V(timers) \
7778
V(types) \
Collapse file

‎src/signal_wrap.cc‎

Copy file name to clipboardExpand all lines: src/signal_wrap.cc
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "async_wrap-inl.h"
2323
#include "env-inl.h"
2424
#include "handle_wrap.h"
25+
#include "node_external_reference.h"
2526
#include "node_process-inl.h"
2627
#include "util-inl.h"
2728
#include "v8.h"
@@ -62,6 +63,12 @@ class SignalWrap : public HandleWrap {
6263
env->SetConstructorFunction(target, "Signal", constructor);
6364
}
6465

66+
static void RegisterExternalReferences(ExternalReferenceRegistry* registry) {
67+
registry->Register(New);
68+
registry->Register(Start);
69+
registry->Register(Stop);
70+
}
71+
6572
SET_NO_MEMORY_INFO()
6673
SET_MEMORY_INFO_NAME(SignalWrap)
6774
SET_SELF_SIZE(SignalWrap)
@@ -167,3 +174,5 @@ bool HasSignalJSHandler(int signum) {
167174

168175

169176
NODE_MODULE_CONTEXT_AWARE_INTERNAL(signal_wrap, node::SignalWrap::Initialize)
177+
NODE_MODULE_EXTERNAL_REFERENCE(signal_wrap,
178+
node::SignalWrap::RegisterExternalReferences)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.