From b5aee1307feeb48a388a611626d81f23a088fbc9 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Tue, 3 Sep 2019 22:20:03 +0300 Subject: [PATCH] Fix spaces --- include/addon-tools.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/addon-tools.hpp b/include/addon-tools.hpp index b3a6d91..2d9e90e 100644 --- a/include/addon-tools.hpp +++ b/include/addon-tools.hpp @@ -479,7 +479,9 @@ inline void eventEmitAsync( } + inline void inheritEs5(napi_env env, Napi::Function ctor, Napi::Function superCtor) { + napi_value global, globalObject, setProto, ctorProtoProp, superCtorProtoProp; napi_value argv[2]; @@ -497,7 +499,8 @@ inline void inheritEs5(napi_env env, Napi::Function ctor, Napi::Function superCt argv[1] = superCtor; napi_call_function(env, global, setProto, 2, argv, nullptr); - ctor.Set("super_", superCtor); \ + ctor.Set("super_", superCtor); + }