From 2600de3f8f8c0e83379a25ce0f2dbe290d3d76c4 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Sun, 18 Aug 2019 14:52:39 +0300 Subject: [PATCH] Fix this check --- 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 0643583..5217b15 100644 --- a/include/addon-tools.hpp +++ b/include/addon-tools.hpp @@ -212,8 +212,8 @@ if (_isDestroyed) return; #define THIS_CHECK \ - if (_isDestroyed) RET_UNDEFINED; \ - NAPI_ENV; + NAPI_ENV; \ + if (_isDestroyed) RET_UNDEFINED; #define CACHE_CAS(CACHE, V) \ if (CACHE == V) { \