Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. diff --git a/src/node-proxy.cc b/src/node-proxy.cc
  2. index 545ce0c..34ade71 100644
  3. --- a/src/node-proxy.cc
  4. +++ b/src/node-proxy.cc
  5. @@ -266,7 +266,7 @@ Handle<Value> NodeProxy::Create(const Arguments& args) {
  6. instance->SetPrototype(args[1]);
  7. }
  8.  
  9. - return scope.Close(instance);
  10. + return instance;
  11. }
  12.  
  13. /**
  14. @@ -321,7 +321,7 @@ Handle<Value> NodeProxy::CreateFunction(const Arguments& args) {
  15.  
  16. fn->SetInternalField(0, proxyHandler);
  17.  
  18. - return scope.Close(fn);
  19. + return fn;
  20. }
  21.  
  22. /**
  23. @@ -1560,7 +1560,7 @@ void NodeProxy::Init(Handle<Object> target) {
  24.  
  25. FunctionCreator = Persistent<ObjectTemplate>::New(instance) ;
  26.  
  27. - scope.Close(Undefined());
  28. + Undefined();
  29. }
  30.  
  31. } // end namespace
Add Comment
Please, Sign In to add comment