From a05692ebb216986a45702c58ae5c59c89f91a78b Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Sun, 8 Sep 2019 16:43:59 +0300 Subject: [PATCH] Fix class name string --- include/addon-tools.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/addon-tools.hpp b/include/addon-tools.hpp index a6a9f84..4bc2de6 100644 --- a/include/addon-tools.hpp +++ b/include/addon-tools.hpp @@ -643,7 +643,7 @@ public: \ #define IMPLEMENT_ES5_CLASS(CLASS) \ Napi::FunctionReference CLASS::_ctorEs5; \ - const char *CLASS::_nameEs5 = "CLASS##__TIMESTAMP__"; \ + const char *CLASS::_nameEs5 = #CLASS; \ void CLASS::_finalizeEs5(napi_env e, void *dest, void* hint) { \ CLASS *instance = reinterpret_cast(dest); \ delete instance; \