From 33fae69779b4b73a63927bac4d4258d57676c97b Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Tue, 9 Apr 2013 15:29:03 -0700 Subject: [PATCH] domain: change name for domain setup The name UsingDomains is misleading for a function that initializes domains for use. --- lib/domain.js | 2 +- src/node.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/domain.js b/lib/domain.js index 80a64c64bf..148d3a27aa 100644 --- a/lib/domain.js +++ b/lib/domain.js @@ -33,7 +33,7 @@ var endMethods = ['end', 'abort', 'destroy', 'destroySoon']; events.usingDomains = true; // let the process know we're using domains -process._usingDomains(); +process._setupDomainUse(); exports.Domain = Domain; diff --git a/src/node.cc b/src/node.cc index f82e75e285..40d3eec4ab 100644 --- a/src/node.cc +++ b/src/node.cc @@ -899,7 +899,7 @@ Handle FromConstructorTemplate(Persistent t, } -Handle UsingDomains(const Arguments& args) { +Handle SetupDomainUse(const Arguments& args) { HandleScope scope(node_isolate); if (using_domains) return Undefined(); @@ -2507,7 +2507,7 @@ Handle SetupProcessObject(int argc, char *argv[]) { NODE_SET_METHOD(process, "binding", Binding); - NODE_SET_METHOD(process, "_usingDomains", UsingDomains); + NODE_SET_METHOD(process, "_setupDomainUse", SetupDomainUse); // values use to cross communicate with processNextTick Local info_box = Object::New();