From fda35ae69f24c37c4a7365bc57b4fe4de6069000 Mon Sep 17 00:00:00 2001 From: Marcel Laverdet Date: Mon, 23 Nov 2015 04:04:13 -0600 Subject: [PATCH] Fix missing HandleScope in callback --- src/weakref.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/weakref.cc b/src/weakref.cc index f152e60..4eea618 100644 --- a/src/weakref.cc +++ b/src/weakref.cc @@ -133,6 +133,7 @@ NAN_PROPERTY_ENUMERATOR(WeakPropertyEnumerator) { */ static void TargetCallback(const Nan::WeakCallbackInfo &info) { + Nan::HandleScope scope; proxy_container *cont = info.GetParameter(); // invoke global callback function