Browse files

weakref: add missing NanScope() to SetCallback()

  • Loading branch information...
1 parent bd35e15 commit 02b7352ba145685082f97b4f0fe2fdec1340e950 @TooTallNate committed Nov 17, 2013
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();

0 comments on commit 02b7352

Please sign in to comment.