| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,7 @@ | |||
| 4 | 4 | #include "memory_tracker-inl.h" | |
| 5 | 5 | #include "node_contextify.h" | |
| 6 | 6 | #include "node_errors.h" | |
| 7 | + #include "node_external_reference.h" | ||
| 7 | 8 | #include "node_internals.h" | |
| 8 | 9 | #include "node_process-inl.h" | |
| 9 | 10 | #include "node_watchdog.h" | |
@@ -808,8 +809,27 @@ void ModuleWrap::Initialize(Local<Object> target, | |||
| 808 | 809 | #undef V | |
| 809 | 810 | } | |
| 810 | 811 | ||
| 812 | + void ModuleWrap::RegisterExternalReferences( | ||
| 813 | + ExternalReferenceRegistry* registry) { | ||
| 814 | + registry->Register(New); | ||
| 815 | + | ||
| 816 | + registry->Register(Link); | ||
| 817 | + registry->Register(Instantiate); | ||
| 818 | + registry->Register(Evaluate); | ||
| 819 | + registry->Register(SetSyntheticExport); | ||
| 820 | + registry->Register(CreateCachedData); | ||
| 821 | + registry->Register(GetNamespace); | ||
| 822 | + registry->Register(GetStatus); | ||
| 823 | + registry->Register(GetError); | ||
| 824 | + registry->Register(GetStaticDependencySpecifiers); | ||
| 825 | + | ||
| 826 | + registry->Register(SetImportModuleDynamicallyCallback); | ||
| 827 | + registry->Register(SetInitializeImportMetaObjectCallback); | ||
| 828 | + } | ||
| 811 | 829 | } // namespace loader | |
| 812 | 830 | } // namespace node | |
| 813 | 831 | ||
| 814 | 832 | NODE_BINDING_CONTEXT_AWARE_INTERNAL(module_wrap, | |
| 815 | 833 | node::loader::ModuleWrap::Initialize) | |
| 834 | + NODE_BINDING_EXTERNAL_REFERENCE( | ||
| 835 | + module_wrap, node::loader::ModuleWrap::RegisterExternalReferences) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,7 @@ | |||
| 11 | 11 | namespace node { | |
| 12 | 12 | ||
| 13 | 13 | class Environment; | |
| 14 | + class ExternalReferenceRegistry; | ||
| 14 | 15 | ||
| 15 | 16 | namespace contextify { | |
| 16 | 17 | class ContextifyContext; | |
@@ -44,6 +45,7 @@ class ModuleWrap : public BaseObject { | |||
| 44 | 45 | v8::Local<v8::Value> unused, | |
| 45 | 46 | v8::Local<v8::Context> context, | |
| 46 | 47 | void* priv); | |
| 48 | + static void RegisterExternalReferences(ExternalReferenceRegistry* registry); | ||
| 47 | 49 | static void HostInitializeImportMetaObjectCallback( | |
| 48 | 50 | v8::Local<v8::Context> context, | |
| 49 | 51 | v8::Local<v8::Module> module, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,6 +74,7 @@ class ExternalReferenceRegistry { | |||
| 74 | 74 | V(heap_utils) \ | |
| 75 | 75 | V(messaging) \ | |
| 76 | 76 | V(mksnapshot) \ | |
| 77 | + V(module_wrap) \ | ||
| 77 | 78 | V(options) \ | |
| 78 | 79 | V(os) \ | |
| 79 | 80 | V(performance) \ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments