Skip to content

Commit

Permalink
Fix missing HandleScope in callback
Browse files Browse the repository at this point in the history
  • Loading branch information
laverdet committed Nov 23, 2015
1 parent a30b570 commit fda35ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/weakref.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ NAN_PROPERTY_ENUMERATOR(WeakPropertyEnumerator) {
*/

static void TargetCallback(const Nan::WeakCallbackInfo<proxy_container> &info) {
Nan::HandleScope scope;
proxy_container *cont = info.GetParameter();

// invoke global callback function
Expand Down

0 comments on commit fda35ae

Please sign in to comment.