Fix emitAsync signature

This commit is contained in:
Luis Blanco 2019-08-22 23:19:21 +03:00
parent 7e7b4dc3e9
commit bb46894d97
1 changed files with 2 additions and 2 deletions

View File

@ -457,7 +457,7 @@ inline void eventEmitAsync(
const std::string &name,
int argc = 0,
const Napi::Value *argv = nullptr,
Napi::AsyncContext ctx = nullptr
napi_async_context context = nullptr
) {
if ( ! that.Has("emit") ) {
@ -475,7 +475,7 @@ inline void eventEmitAsync(
args.push_back(napi_value(argv[i]));
}
thatEmit.MakeCallback(that, args, ctx);
thatEmit.MakeCallback(that, args, context);
}