Skip to content

Instantly share code, notes, and snippets.

@samshull
Created August 31, 2011 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samshull/1182721 to your computer and use it in GitHub Desktop.
Save samshull/1182721 to your computer and use it in GitHub Desktop.
diff --git a/src/node-proxy.cc b/src/node-proxy.cc
index 545ce0c..34ade71 100644
--- a/src/node-proxy.cc
+++ b/src/node-proxy.cc
@@ -266,7 +266,7 @@ Handle<Value> NodeProxy::Create(const Arguments& args) {
instance->SetPrototype(args[1]);
}
- return scope.Close(instance);
+ return instance;
}
/**
@@ -321,7 +321,7 @@ Handle<Value> NodeProxy::CreateFunction(const Arguments& args) {
fn->SetInternalField(0, proxyHandler);
- return scope.Close(fn);
+ return fn;
}
/**
@@ -1560,7 +1560,7 @@ void NodeProxy::Init(Handle<Object> target) {
FunctionCreator = Persistent<ObjectTemplate>::New(instance) ;
- scope.Close(Undefined());
+ Undefined();
}
} // end namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment