From 3a1f1defb81090e4a3267d2ab78e9256a6617367 Mon Sep 17 00:00:00 2001 From: Sergio Ricardo Zerbetto Masson Date: Thu, 10 Jul 2025 13:28:35 -0300 Subject: [PATCH] Fixed exception include --- Core/Node-API/Include/Shared/napi/napi.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Core/Node-API/Include/Shared/napi/napi.h b/Core/Node-API/Include/Shared/napi/napi.h index afd9af03..a9babfc8 100644 --- a/Core/Node-API/Include/Shared/napi/napi.h +++ b/Core/Node-API/Include/Shared/napi/napi.h @@ -36,9 +36,6 @@ #endif // NAPI_HAS_THREADS #include #include -#ifdef NAPI_CPP_EXCEPTIONS -#include -#endif // NAPI_CPP_EXCEPTIONS // VS2015 RTM has bugs with constexpr, so require min of VS2015 Update 3 (known // good version) @@ -82,7 +79,7 @@ static_assert(sizeof(char16_t) == sizeof(wchar_t), #endif #ifdef NAPI_CPP_EXCEPTIONS - +#include // When C++ exceptions are enabled, Errors are thrown directly. There is no need // to return anything after the throw statements. The variadic parameter is an // optional return value that is ignored.