GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • src
    • node_external_reference.h
    • process_wrap.cc
Expand file treeCollapse file tree
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
@@ -110,6 +110,7 @@ class ExternalReferenceRegistry {
110110
V(permission) \
111111
V(process_methods) \
112112
V(process_object) \
113+
V(process_wrap) \
113114
V(report) \
114115
V(task_queue) \
115116
V(tcp_wrap) \
Collapse file

‎src/process_wrap.cc‎

Copy file name to clipboardExpand all lines: src/process_wrap.cc
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
#include "env-inl.h"
23+
#include "node_external_reference.h"
2324
#include "permission/permission.h"
2425
#include "stream_base-inl.h"
2526
#include "stream_wrap.h"
@@ -67,6 +68,12 @@ class ProcessWrap : public HandleWrap {
6768
SetConstructorFunction(context, target, "Process", constructor);
6869
}
6970

71+
static void RegisterExternalReferences(ExternalReferenceRegistry* registry) {
72+
registry->Register(New);
73+
registry->Register(Spawn);
74+
registry->Register(Kill);
75+
}
76+
7077
SET_NO_MEMORY_INFO()
7178
SET_MEMORY_INFO_NAME(ProcessWrap)
7279
SET_SELF_SIZE(ProcessWrap)
@@ -325,3 +332,5 @@ class ProcessWrap : public HandleWrap {
325332
} // namespace node
326333

327334
NODE_BINDING_CONTEXT_AWARE_INTERNAL(process_wrap, node::ProcessWrap::Initialize)
335+
NODE_BINDING_EXTERNAL_REFERENCE(process_wrap,
336+
node::ProcessWrap::RegisterExternalReferences)

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.