From b6fa42d93faf698a2662a2895993e0b3f9a26b96 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Sun, 13 May 2018 22:46:38 +0300 Subject: [PATCH] :bug: Fix callback scope for emit --- include/event-emitter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/event-emitter.hpp b/include/event-emitter.hpp index d0f186b..3931d02 100644 --- a/include/event-emitter.hpp +++ b/include/event-emitter.hpp @@ -113,7 +113,7 @@ public: if ( ! callback.IsEmpty() ) { Nan::AsyncResource async("EventEmitter::cpp_emit()"); - callback.Call(argc, argv, &async); + callback.Call(handle(), argc, argv, &async); } }