🐛 Fix callback scope for emit

This commit is contained in:
Luis Blanco 2018-05-13 22:46:38 +03:00
parent ca78f6efdb
commit b6fa42d93f
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ public:
if ( ! callback.IsEmpty() ) { if ( ! callback.IsEmpty() ) {
Nan::AsyncResource async("EventEmitter::cpp_emit()"); Nan::AsyncResource async("EventEmitter::cpp_emit()");
callback.Call(argc, argv, &async); callback.Call(handle(), argc, argv, &async);
} }
} }