Browse Source

domain: change name for domain setup

The name UsingDomains is misleading for a function that initializes
domains for use.
v0.11.1-release
Trevor Norris 12 years ago
committed by Ben Noordhuis
parent
commit
33fae69779
  1. 2
      lib/domain.js
  2. 4
      src/node.cc

2
lib/domain.js

@ -33,7 +33,7 @@ var endMethods = ['end', 'abort', 'destroy', 'destroySoon'];
events.usingDomains = true; events.usingDomains = true;
// let the process know we're using domains // let the process know we're using domains
process._usingDomains(); process._setupDomainUse();
exports.Domain = Domain; exports.Domain = Domain;

4
src/node.cc

@ -899,7 +899,7 @@ Handle<Value> FromConstructorTemplate(Persistent<FunctionTemplate> t,
} }
Handle<Value> UsingDomains(const Arguments& args) { Handle<Value> SetupDomainUse(const Arguments& args) {
HandleScope scope(node_isolate); HandleScope scope(node_isolate);
if (using_domains) if (using_domains)
return Undefined(); return Undefined();
@ -2507,7 +2507,7 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
NODE_SET_METHOD(process, "binding", Binding); 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 // values use to cross communicate with processNextTick
Local<Object> info_box = Object::New(); Local<Object> info_box = Object::New();

Loading…
Cancel
Save