| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| 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) \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,6 +20,7 @@ | |||
| 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) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments