🐛 Fix callback scope for emit
This commit is contained in:
parent
ca78f6efdb
commit
b6fa42d93f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue