| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 536322f commit fcfde34
65 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -419,9 +419,9 @@ void Initialize(Local<Object> target, | |||
| 419 | 419 | SetConstructorFunction(context, target, "ChannelWrap", channel_wrap); | |
| 420 | 420 | } | |
| 421 | 421 | ||
| 422 | - // Run the `Initialize` function when loading this module through | ||
| 422 | + // Run the `Initialize` function when loading this binding through | ||
| 423 | 423 | // `internalBinding('cares_wrap')` in Node.js's built-in JavaScript code: | |
| 424 | - NODE_MODULE_CONTEXT_AWARE_INTERNAL(cares_wrap, Initialize) | ||
| 424 | + NODE_BINDING_CONTEXT_AWARE_INTERNAL(cares_wrap, Initialize) | ||
| 425 | 425 | ``` | |
| 426 | 426 | ||
| 427 | 427 | If the C++ binding is loaded during bootstrap, it needs to be registered | |
@@ -438,10 +438,10 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) { | |||
| 438 | 438 | } // namespace util | |
| 439 | 439 | } // namespace node | |
| 440 | 440 | ||
| 441 | - // The first argument passed to `NODE_MODULE_EXTERNAL_REFERENCE`, | ||
| 441 | + // The first argument passed to `NODE_BINDING_EXTERNAL_REFERENCE`, | ||
| 442 | 442 | // which is `util` here, needs to be added to the | |
| 443 | 443 | // `EXTERNAL_REFERENCE_BINDING_LIST_BASE` list in node_external_reference.h | |
| 444 | - NODE_MODULE_EXTERNAL_REFERENCE(util, node::util::RegisterExternalReferences) | ||
| 444 | + NODE_BINDING_EXTERNAL_REFERENCE(util, node::util::RegisterExternalReferences) | ||
| 445 | 445 | ``` | |
| 446 | 446 | ||
| 447 | 447 | Otherwise, you might see an error message like this when building the | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -709,6 +709,6 @@ Local<Object> AsyncWrap::GetOwner(Environment* env, Local<Object> obj) { | |||
| 709 | 709 | ||
| 710 | 710 | } // namespace node | |
| 711 | 711 | ||
| 712 | - NODE_MODULE_CONTEXT_AWARE_INTERNAL(async_wrap, node::AsyncWrap::Initialize) | ||
| 713 | - NODE_MODULE_EXTERNAL_REFERENCE(async_wrap, | ||
| 714 | - node::AsyncWrap::RegisterExternalReferences) | ||
| 712 | + NODE_BINDING_CONTEXT_AWARE_INTERNAL(async_wrap, node::AsyncWrap::Initialize) | ||
| 713 | + NODE_BINDING_EXTERNAL_REFERENCE(async_wrap, | ||
| 714 | + node::AsyncWrap::RegisterExternalReferences) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1976,6 +1976,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) { | |||
| 1976 | 1976 | } // namespace cares_wrap | |
| 1977 | 1977 | } // namespace node | |
| 1978 | 1978 | ||
| 1979 | - NODE_MODULE_CONTEXT_AWARE_INTERNAL(cares_wrap, node::cares_wrap::Initialize) | ||
| 1980 | - NODE_MODULE_EXTERNAL_REFERENCE(cares_wrap, | ||
| 1981 | - node::cares_wrap::RegisterExternalReferences) | ||
| 1979 | + NODE_BINDING_CONTEXT_AWARE_INTERNAL(cares_wrap, node::cares_wrap::Initialize) | ||
| 1980 | + NODE_BINDING_EXTERNAL_REFERENCE(cares_wrap, | ||
| 1981 | + node::cares_wrap::RegisterExternalReferences) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2148,6 +2148,6 @@ void TLSWrap::RegisterExternalReferences(ExternalReferenceRegistry* registry) { | |||
| 2148 | 2148 | } // namespace crypto | |
| 2149 | 2149 | } // namespace node | |
| 2150 | 2150 | ||
| 2151 | - NODE_MODULE_CONTEXT_AWARE_INTERNAL(tls_wrap, node::crypto::TLSWrap::Initialize) | ||
| 2152 | - NODE_MODULE_EXTERNAL_REFERENCE( | ||
| 2151 | + NODE_BINDING_CONTEXT_AWARE_INTERNAL(tls_wrap, node::crypto::TLSWrap::Initialize) | ||
| 2152 | + NODE_BINDING_EXTERNAL_REFERENCE( | ||
| 2153 | 2153 | tls_wrap, node::crypto::TLSWrap::RegisterExternalReferences) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -237,6 +237,7 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename, | |||
| 237 | 237 | } // anonymous namespace | |
| 238 | 238 | } // namespace node | |
| 239 | 239 | ||
| 240 | - NODE_MODULE_CONTEXT_AWARE_INTERNAL(fs_event_wrap, node::FSEventWrap::Initialize) | ||
| 241 | - NODE_MODULE_EXTERNAL_REFERENCE(fs_event_wrap, | ||
| 242 | - node::FSEventWrap::RegisterExternalReferences) | ||
| 240 | + NODE_BINDING_CONTEXT_AWARE_INTERNAL(fs_event_wrap, | ||
| 241 | + node::FSEventWrap::Initialize) | ||
| 242 | + NODE_BINDING_EXTERNAL_REFERENCE(fs_event_wrap, | ||
| 243 | + node::FSEventWrap::RegisterExternalReferences) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -181,5 +181,5 @@ void HandleWrap::RegisterExternalReferences( | |||
| 181 | 181 | ||
| 182 | 182 | } // namespace node | |
| 183 | 183 | ||
| 184 | - NODE_MODULE_EXTERNAL_REFERENCE(handle_wrap, | ||
| 185 | - node::HandleWrap::RegisterExternalReferences) | ||
| 184 | + NODE_BINDING_EXTERNAL_REFERENCE(handle_wrap, | ||
| 185 | + node::HandleWrap::RegisterExternalReferences) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -463,6 +463,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) { | |||
| 463 | 463 | } // namespace heap | |
| 464 | 464 | } // namespace node | |
| 465 | 465 | ||
| 466 | - NODE_MODULE_CONTEXT_AWARE_INTERNAL(heap_utils, node::heap::Initialize) | ||
| 467 | - NODE_MODULE_EXTERNAL_REFERENCE(heap_utils, | ||
| 468 | - node::heap::RegisterExternalReferences) | ||
| 466 | + NODE_BINDING_CONTEXT_AWARE_INTERNAL(heap_utils, node::heap::Initialize) | ||
| 467 | + NODE_BINDING_EXTERNAL_REFERENCE(heap_utils, | ||
| 468 | + node::heap::RegisterExternalReferences) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -399,7 +399,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) { | |||
| 399 | 399 | } // namespace inspector | |
| 400 | 400 | } // namespace node | |
| 401 | 401 | ||
| 402 | - NODE_MODULE_CONTEXT_AWARE_INTERNAL(inspector, | ||
| 403 | - node::inspector::Initialize) | ||
| 404 | - NODE_MODULE_EXTERNAL_REFERENCE(inspector, | ||
| 405 | - node::inspector::RegisterExternalReferences) | ||
| 402 | + NODE_BINDING_CONTEXT_AWARE_INTERNAL(inspector, node::inspector::Initialize) | ||
| 403 | + NODE_BINDING_EXTERNAL_REFERENCE(inspector, | ||
| 404 | + node::inspector::RegisterExternalReferences) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -524,6 +524,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) { | |||
| 524 | 524 | } // namespace profiler | |
| 525 | 525 | } // namespace node | |
| 526 | 526 | ||
| 527 | - NODE_MODULE_CONTEXT_AWARE_INTERNAL(profiler, node::profiler::Initialize) | ||
| 528 | - NODE_MODULE_EXTERNAL_REFERENCE(profiler, | ||
| 529 | - node::profiler::RegisterExternalReferences) | ||
| 527 | + NODE_BINDING_CONTEXT_AWARE_INTERNAL(profiler, node::profiler::Initialize) | ||
| 528 | + NODE_BINDING_EXTERNAL_REFERENCE(profiler, | ||
| 529 | + node::profiler::RegisterExternalReferences) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -216,4 +216,4 @@ void JSStream::Initialize(Local<Object> target, | |||
| 216 | 216 | ||
| 217 | 217 | } // namespace node | |
| 218 | 218 | ||
| 219 | - NODE_MODULE_CONTEXT_AWARE_INTERNAL(js_stream, node::JSStream::Initialize) | ||
| 219 | + NODE_BINDING_CONTEXT_AWARE_INTERNAL(js_stream, node::JSStream::Initialize) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments