Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removing debug global variables myThis, myHolder, myCallee, State_myThis

  • Loading branch information...
commit 18baaa2bd2a865087d2a0a14a014e2d23890a900 1 parent 6c65f7c
@emiloslavsky emiloslavsky authored
Showing with 0 additions and 7 deletions.
  1. +0 −4 src/node-zk.cpp
  2. +0 −3  test/zk_test_create.js
View
4 src/node-zk.cpp
@@ -192,9 +192,6 @@ class ZooKeeper: public ObjectWrap {
static Handle<Value> New (const Arguments& args) {
HandleScope scope;
ZooKeeper *zk = new ZooKeeper ();
- v8::Context::GetCurrent()->Global()->Set(String::New("myThis"), args.This());
- v8::Context::GetCurrent()->Global()->Set(String::New("myHolder"), args.Holder());
- v8::Context::GetCurrent()->Global()->Set(String::New("myCallee"), args.Callee()->GetName());
zk->Wrap(args.This());
//zk->handle_.ClearWeak();
@@ -693,7 +690,6 @@ class ZooKeeper: public ObjectWrap {
static Handle<Value> StatePropertyGetter (Local<String> property, const AccessorInfo& info) {
HandleScope scope;
- v8::Context::GetCurrent()->Global()->Set(String::New("State_myThis"), info.This());
//Debug::DebugBreak();
assert(info.This().IsEmpty() == false);
assert(info.This()->IsObject());
View
3  test/zk_test_create.js
@@ -9,9 +9,6 @@ var connect = (process.argv[4] || 'localhost:2181');
function zkTest (seq_, callback) {
this.zk = new ZK();
- console.log ("myThis=%j", myThis);
- console.log ("myHolder=%j", myHolder);
- //console.log ("myCallee=%j", myCallee);
this.zk.init ({connect:connect, timeout:200000, debug_level:ZK.ZOO_LOG_LEVEL_INFO, host_order_deterministic:false});
this.zk.on ('connect', function (zkk, clientid) {
console.log ("session #%d connected ok", seq_);
Please sign in to comment.
Something went wrong with that request. Please try again.