| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -122,6 +122,7 @@ class ExternalReferenceRegistry { | |||
| 122 | 122 | V(string_decoder) \ | |
| 123 | 123 | V(stream_wrap) \ | |
| 124 | 124 | V(signal_wrap) \ | |
| 125 | + V(spawn_sync) \ | ||
| 125 | 126 | V(trace_events) \ | |
| 126 | 127 | V(timers) \ | |
| 127 | 128 | V(types) \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,6 +22,7 @@ | |||
| 22 | 22 | #include "spawn_sync.h" | |
| 23 | 23 | #include "debug_utils-inl.h" | |
| 24 | 24 | #include "env-inl.h" | |
| 25 | + #include "node_external_reference.h" | ||
| 25 | 26 | #include "node_internals.h" | |
| 26 | 27 | #include "string_bytes.h" | |
| 27 | 28 | #include "util-inl.h" | |
@@ -366,6 +367,10 @@ void SyncProcessRunner::Initialize(Local<Object> target, | |||
| 366 | 367 | SetMethod(context, target, "spawn", Spawn); | |
| 367 | 368 | } | |
| 368 | 369 | ||
| 370 | + void SyncProcessRunner::RegisterExternalReferences( | ||
| 371 | + ExternalReferenceRegistry* registry) { | ||
| 372 | + registry->Register(Spawn); | ||
| 373 | + } | ||
| 369 | 374 | ||
| 370 | 375 | void SyncProcessRunner::Spawn(const FunctionCallbackInfo<Value>& args) { | |
| 371 | 376 | Environment* env = Environment::GetCurrent(args); | |
@@ -1107,3 +1112,5 @@ void SyncProcessRunner::KillTimerCloseCallback(uv_handle_t* handle) { | |||
| 1107 | 1112 | ||
| 1108 | 1113 | NODE_BINDING_CONTEXT_AWARE_INTERNAL(spawn_sync, | |
| 1109 | 1114 | node::SyncProcessRunner::Initialize) | |
| 1115 | + NODE_BINDING_EXTERNAL_REFERENCE( | ||
| 1116 | + spawn_sync, node::SyncProcessRunner::RegisterExternalReferences) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,8 +30,7 @@ | |||
| 30 | 30 | ||
| 31 | 31 | namespace node { | |
| 32 | 32 | ||
| 33 | - | ||
| 34 | - | ||
| 33 | + class ExternalReferenceRegistry; | ||
| 35 | 34 | class SyncProcessOutputBuffer; | |
| 36 | 35 | class SyncProcessStdioPipe; | |
| 37 | 36 | class SyncProcessRunner; | |
@@ -140,6 +139,7 @@ class SyncProcessRunner { | |||
| 140 | 139 | }; | |
| 141 | 140 | ||
| 142 | 141 | public: | |
| 142 | + static void RegisterExternalReferences(ExternalReferenceRegistry* registry); | ||
| 143 | 143 | static void Initialize(v8::Local<v8::Object> target, | |
| 144 | 144 | v8::Local<v8::Value> unused, | |
| 145 | 145 | v8::Local<v8::Context> context, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments