GeezerVison is showing github.com — src: register process_wrap external references · nodejs/node@2cfee53
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_external_reference.h +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -110,6 +110,7 @@ class ExternalReferenceRegistry { |
110 | 110 | V(permission) \ |
111 | 111 | V(process_methods) \ |
112 | 112 | V(process_object) \ |
| 113 | + V(process_wrap) \ |
113 | 114 | V(report) \ |
114 | 115 | V(task_queue) \ |
115 | 116 | V(tcp_wrap) \ |
|
Collapse file
Copy file name to clipboardExpand all lines: src/process_wrap.cc +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. |
21 | 21 |
|
22 | 22 | #include "env-inl.h" |
| 23 | +#include "node_external_reference.h" |
23 | 24 | #include "permission/permission.h" |
24 | 25 | #include "stream_base-inl.h" |
25 | 26 | #include "stream_wrap.h" |
@@ -67,6 +68,12 @@ class ProcessWrap : public HandleWrap { |
67 | 68 | SetConstructorFunction(context, target, "Process", constructor); |
68 | 69 | } |
69 | 70 |
|
| 71 | + static void RegisterExternalReferences(ExternalReferenceRegistry* registry) { |
| 72 | + registry->Register(New); |
| 73 | + registry->Register(Spawn); |
| 74 | + registry->Register(Kill); |
| 75 | + } |
| 76 | + |
70 | 77 | SET_NO_MEMORY_INFO() |
71 | 78 | SET_MEMORY_INFO_NAME(ProcessWrap) |
72 | 79 | SET_SELF_SIZE(ProcessWrap) |
@@ -325,3 +332,5 @@ class ProcessWrap : public HandleWrap { |
325 | 332 | } // namespace node |
326 | 333 |
|
327 | 334 | NODE_BINDING_CONTEXT_AWARE_INTERNAL(process_wrap, node::ProcessWrap::Initialize) |
| 335 | +NODE_BINDING_EXTERNAL_REFERENCE(process_wrap, |
| 336 | + node::ProcessWrap::RegisterExternalReferences) |