Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

weakref: add missing NanScope() to SetCallback()

  • Loading branch information...
commit 02b7352ba145685082f97b4f0fe2fdec1340e950 1 parent bd35e15
@TooTallNate authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/weakref.cc
View
1  src/weakref.cc
@@ -255,6 +255,7 @@ NAN_METHOD(GetEmitter) {
*/
NAN_METHOD(SetCallback) {
+ NanScope();
Local<Function> callbackHandle = args[0].As<Function>();
globalCallback = new NanCallback(callbackHandle);
NanReturnUndefined();
Please sign in to comment.
Something went wrong with that request. Please try again.