From bb46894d97996966d2b3a9e94ebaf1f6c928cddf Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Thu, 22 Aug 2019 23:19:21 +0300 Subject: [PATCH] Fix emitAsync signature --- include/addon-tools.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/addon-tools.hpp b/include/addon-tools.hpp index eae92bd..6d744be 100644 --- a/include/addon-tools.hpp +++ b/include/addon-tools.hpp @@ -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); }