Fix emitAsync signature
This commit is contained in:
parent
7e7b4dc3e9
commit
bb46894d97
|
@ -457,7 +457,7 @@ inline void eventEmitAsync(
|
||||||
const std::string &name,
|
const std::string &name,
|
||||||
int argc = 0,
|
int argc = 0,
|
||||||
const Napi::Value *argv = nullptr,
|
const Napi::Value *argv = nullptr,
|
||||||
Napi::AsyncContext ctx = nullptr
|
napi_async_context context = nullptr
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if ( ! that.Has("emit") ) {
|
if ( ! that.Has("emit") ) {
|
||||||
|
@ -475,7 +475,7 @@ inline void eventEmitAsync(
|
||||||
args.push_back(napi_value(argv[i]));
|
args.push_back(napi_value(argv[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
thatEmit.MakeCallback(that, args, ctx);
|
thatEmit.MakeCallback(that, args, context);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue