diff --git a/packages/react-native-nitro-modules/cpp/core/HybridFunction.hpp b/packages/react-native-nitro-modules/cpp/core/HybridFunction.hpp index 1f6a36461..f95ff3404 100644 --- a/packages/react-native-nitro-modules/cpp/core/HybridFunction.hpp +++ b/packages/react-native-nitro-modules/cpp/core/HybridFunction.hpp @@ -186,7 +186,6 @@ class HybridFunction final { jsi::Object object = value.getObject(runtime); // 2. Check if it even has any kind of `NativeState` -#ifdef NITRO_DEBUG if (!object.hasNativeState(runtime)) [[unlikely]] { throw jsi::JSError(runtime, "Cannot " + getHybridFuncDebugInfo(funcKind, funcName) + " - `this` does not have a NativeState! Suggestions:\n" @@ -197,7 +196,6 @@ class HybridFunction final { "- Did you accidentally call `" + funcName + "` on the prototype directly?"); } -#endif // 3. Get `NativeState` from the jsi::Object and check if it is non-null std::shared_ptr nativeState = object.getNativeState(runtime);