From 2ce4ba8f80f1424377188dd05f292abbc8927897 Mon Sep 17 00:00:00 2001 From: Sergio Ricardo Zerbetto Masson Date: Thu, 10 Jul 2025 14:38:56 -0300 Subject: [PATCH 1/2] Added mission Babylon Addition comment --- Core/Node-API/Include/Shared/napi/napi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/Node-API/Include/Shared/napi/napi.h b/Core/Node-API/Include/Shared/napi/napi.h index a9babfc8..7d62389b 100644 --- a/Core/Node-API/Include/Shared/napi/napi.h +++ b/Core/Node-API/Include/Shared/napi/napi.h @@ -79,6 +79,7 @@ static_assert(sizeof(char16_t) == sizeof(wchar_t), #endif #ifdef NAPI_CPP_EXCEPTIONS +// [BABYLON-NATIVE-ADDITION] #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 From 31f839b7157f43ba2243b457572d8b2848ee3ebc Mon Sep 17 00:00:00 2001 From: "Sergio R. Z. Masson" <97050577+SergioRZMasson@users.noreply.github.com> Date: Thu, 10 Jul 2025 15:03:25 -0300 Subject: [PATCH 2/2] Update Core/Node-API/Include/Shared/napi/napi.h Co-authored-by: Gary Hsu --- Core/Node-API/Include/Shared/napi/napi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/Node-API/Include/Shared/napi/napi.h b/Core/Node-API/Include/Shared/napi/napi.h index 7d62389b..24b044eb 100644 --- a/Core/Node-API/Include/Shared/napi/napi.h +++ b/Core/Node-API/Include/Shared/napi/napi.h @@ -79,8 +79,10 @@ static_assert(sizeof(char16_t) == sizeof(wchar_t), #endif #ifdef NAPI_CPP_EXCEPTIONS + // [BABYLON-NATIVE-ADDITION] #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.